mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Don't append #version if it's already done.
This commit is contained in:
parent
94b57197aa
commit
60b7d633a1
@ -376,7 +376,7 @@ static void print_linker_log(GLuint obj)
|
||||
static bool compile_shader(GLuint shader, const char *define, const char *program)
|
||||
{
|
||||
char version[32] = {0};
|
||||
if (glsl_core)
|
||||
if (glsl_core && !strstr(program, "#version"))
|
||||
{
|
||||
unsigned version_no = 0;
|
||||
unsigned gl_ver = glsl_major * 100 + glsl_minor * 10;
|
||||
|
Loading…
x
Reference in New Issue
Block a user