mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(Lakka) fix segfault due to uninitialized pointer in coords.
This commit is contained in:
parent
f894f7ad0d
commit
ce9cd4ac8f
@ -328,6 +328,7 @@ void lakka_draw_background(void)
|
||||
coords.vertices = 4;
|
||||
coords.vertex = vertex;
|
||||
coords.tex_coord = tex_coord;
|
||||
coords.lut_tex_coord = tex_coord;
|
||||
coords.color = textures[TEXTURE_BG].id ? color : black_color;
|
||||
glBindTexture(GL_TEXTURE_2D, textures[TEXTURE_BG].id);
|
||||
|
||||
@ -373,6 +374,7 @@ void lakka_draw_icon(GLuint texture, float x, float y,
|
||||
coords.vertices = 4;
|
||||
coords.vertex = vertex;
|
||||
coords.tex_coord = tex_coord;
|
||||
coords.lut_tex_coord = tex_coord;
|
||||
coords.color = color;
|
||||
glBindTexture(GL_TEXTURE_2D, texture);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user