mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-19 09:02:26 +00:00
Fix compile when GLSL isn't compiled in.
This commit is contained in:
parent
fe24d961e3
commit
1389a1e37c
2
gfx/gl.c
2
gfx/gl.c
@ -245,12 +245,14 @@ static bool gl_shader_init(void *data)
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef HAVE_GLSL
|
||||
if (gl->core_context && RARCH_SHADER_CG)
|
||||
{
|
||||
RARCH_ERR("[GL]: Cg cannot be used with core GL context. Falling back to GLSL.\n");
|
||||
backend = &gl_glsl_backend;
|
||||
shader_path = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
gl->shader = backend;
|
||||
bool ret = gl->shader->init(shader_path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user