Move GLSL driver higher up the priority list

This commit is contained in:
twinaphex 2015-02-09 21:49:29 +01:00
parent e0184f0877
commit f3002c334f
2 changed files with 6 additions and 4 deletions

View File

@ -260,12 +260,14 @@ static bool gl_shader_init(gl_t *gl)
}
#ifdef HAVE_GLSL
if (gl->core_context && RARCH_SHADER_CG)
#ifdef HAVE_CG
if (gl->core_context && backend == &gl_cg_backend)
{
RARCH_ERR("[GL]: Cg cannot be used with core GL context. Falling back to GLSL.\n");
backend = &gl_glsl_backend;
shader_path = NULL;
}
#endif
#endif
gl->shader = backend;

View File

@ -18,12 +18,12 @@
#include <string.h>
static const shader_backend_t *shader_ctx_drivers[] = {
#ifdef HAVE_CG
&gl_cg_backend,
#endif
#ifdef HAVE_GLSL
&gl_glsl_backend,
#endif
#ifdef HAVE_CG
&gl_cg_backend,
#endif
#ifdef HAVE_HLSL
&hlsl_backend,
#endif