mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
Merge pull request #1095 from aliaspider/master
(Lakka) fix segfault due to uninitialized pointer in coords.
This commit is contained in:
commit
f47b3570bc
@ -328,6 +328,7 @@ void lakka_draw_background(void)
|
|||||||
coords.vertices = 4;
|
coords.vertices = 4;
|
||||||
coords.vertex = vertex;
|
coords.vertex = vertex;
|
||||||
coords.tex_coord = tex_coord;
|
coords.tex_coord = tex_coord;
|
||||||
|
coords.lut_tex_coord = tex_coord;
|
||||||
coords.color = textures[TEXTURE_BG].id ? color : black_color;
|
coords.color = textures[TEXTURE_BG].id ? color : black_color;
|
||||||
glBindTexture(GL_TEXTURE_2D, textures[TEXTURE_BG].id);
|
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.vertices = 4;
|
||||||
coords.vertex = vertex;
|
coords.vertex = vertex;
|
||||||
coords.tex_coord = tex_coord;
|
coords.tex_coord = tex_coord;
|
||||||
|
coords.lut_tex_coord = tex_coord;
|
||||||
coords.color = color;
|
coords.color = color;
|
||||||
glBindTexture(GL_TEXTURE_2D, texture);
|
glBindTexture(GL_TEXTURE_2D, texture);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user