mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 11:43:00 +00:00
Force modern XML shaders for GLES2.
This commit is contained in:
parent
6052af0327
commit
dd2982b148
@ -1004,6 +1004,14 @@ bool gl_glsl_init(const char *path)
|
||||
glsl_modern = true;
|
||||
}
|
||||
|
||||
#ifdef HAVE_OPENGLES2
|
||||
if (!glsl_modern)
|
||||
{
|
||||
RARCH_ERR("[GL]: GLES context is used, but shader is not modern. Cannot use it.\n");
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
struct shader_program stock_prog = {0};
|
||||
stock_prog.vertex = strdup(glsl_modern ? stock_vertex_modern : stock_vertex_legacy);
|
||||
stock_prog.fragment = strdup(glsl_modern ? stock_fragment_modern : stock_fragment_legacy);
|
||||
|
Loading…
x
Reference in New Issue
Block a user