mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +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:
parent
31342ea18f
commit
be05a7e194
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user