mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 17:10:12 +00:00
Fix segfault when set_shader() fails.
This commit is contained in:
parent
d9b640fafe
commit
d9ee3e54ec
6
gfx/gl.c
6
gfx/gl.c
@ -1771,9 +1771,11 @@ static bool gl_set_shader(void *data, enum rarch_shader_type type, const char *p
|
||||
bool ret = gl->shader->init(path);
|
||||
if (!ret)
|
||||
{
|
||||
gl->shader = NULL;
|
||||
RARCH_WARN("[GL]: Failed to set multipass shader. Falling back to stock.\n");
|
||||
return gl->shader->init(NULL);
|
||||
bool ret = gl->shader->init(NULL);
|
||||
if (!ret)
|
||||
gl->shader = NULL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef HAVE_FBO
|
||||
|
Loading…
Reference in New Issue
Block a user