mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Move GLSL driver higher up the priority list
This commit is contained in:
parent
e0184f0877
commit
f3002c334f
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user