mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(GLSL) Make gl_glsl_num more robust
This commit is contained in:
parent
8c269f119d
commit
4cf03811ea
@ -1185,7 +1185,9 @@ static void gl_glsl_use(void *data, unsigned index)
|
||||
|
||||
static unsigned gl_glsl_num(void)
|
||||
{
|
||||
return glsl_shader->passes;
|
||||
if (glsl_shader)
|
||||
return glsl_shader->passes;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static bool gl_glsl_filter_type(unsigned index, bool *smooth)
|
||||
|
Loading…
x
Reference in New Issue
Block a user