1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-05 09:48:42 +00:00

Fix buffer overflow. (#13436)

retroarch sometimes crashes at startup when loading asset textures with gl1 driver.

Co-authored-by: cborg <moi@schtroumpf-moi.village>
This commit is contained in:
cedorg 2021-12-31 18:17:02 +01:00 committed by GitHub
parent 31342ea18f
commit be05a7e194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1304,6 +1304,7 @@ static void gl1_load_texture_data(
#ifndef VITA
glPixelStorei(GL_UNPACK_ALIGNMENT, alignment);
glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
#endif
glTexImage2D(GL_TEXTURE_2D,