mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_GLSL
|
||||||
if (gl->core_context && RARCH_SHADER_CG)
|
if (gl->core_context && RARCH_SHADER_CG)
|
||||||
{
|
{
|
||||||
RARCH_ERR("[GL]: Cg cannot be used with core GL context. Falling back to GLSL.\n");
|
RARCH_ERR("[GL]: Cg cannot be used with core GL context. Falling back to GLSL.\n");
|
||||||
backend = &gl_glsl_backend;
|
backend = &gl_glsl_backend;
|
||||||
shader_path = NULL;
|
shader_path = NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
gl->shader = backend;
|
gl->shader = backend;
|
||||||
bool ret = gl->shader->init(shader_path);
|
bool ret = gl->shader->init(shader_path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user