From 1389a1e37c7426e0d4020c6372fd0d85847aa03a Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 11 Aug 2013 15:25:04 +0200 Subject: [PATCH] Fix compile when GLSL isn't compiled in. --- gfx/gl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/gl.c b/gfx/gl.c index 210608197f..628f743634 100644 --- a/gfx/gl.c +++ b/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);