mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(Lakka disp) Add some more checks to gl->shader->use
This commit is contained in:
parent
a79e403273
commit
0ffd9d8c4f
@ -372,7 +372,7 @@ void lakka_draw_background(void)
|
||||
gl->coords.color = color;
|
||||
glBindTexture(GL_TEXTURE_2D, textures[TEXTURE_BG].id);
|
||||
|
||||
if (gl->shader && gl->shader->use)
|
||||
if (gl && gl->shader && gl->shader->use)
|
||||
gl->shader->use(gl, GL_SHADER_STOCK_BLEND);
|
||||
|
||||
gl->coords.vertices = 4;
|
||||
@ -415,7 +415,7 @@ void lakka_draw_icon(GLuint texture, float x, float y, float alpha, float rotati
|
||||
gl->coords.color = color;
|
||||
glBindTexture(GL_TEXTURE_2D, texture);
|
||||
|
||||
if (gl->shader && gl->shader->use)
|
||||
if (gl && gl->shader && gl->shader->use)
|
||||
gl->shader->use(gl, GL_SHADER_STOCK_BLEND);
|
||||
|
||||
math_matrix mymat;
|
||||
|
Loading…
x
Reference in New Issue
Block a user