mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
commit
350a7477d6
@ -23,11 +23,11 @@
|
||||
"#else\n" \
|
||||
" precision mediump float;\n" \
|
||||
"#endif\n" #src
|
||||
#define GLSL_300(src) "#version 300 es\n" #src
|
||||
#else
|
||||
#define CG(src) "" #src
|
||||
#define GLSL(src) "" #src
|
||||
#define GLSL_300(src) "#version 300 es\n" #src
|
||||
#define GLSL_330(src) "#version 330 core\n" #src
|
||||
#define GLSL_330(src) "#version 330\n" #src
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -344,7 +344,6 @@ static bool gl_glsl_compile_shader(glsl_shader_data_t *glsl,
|
||||
}
|
||||
#endif
|
||||
snprintf(version, sizeof(version), "#version %u%s\n", version_no, version_extra);
|
||||
RARCH_LOG("[GLSL]: Using GLSL version %u%s.\n", version_no, version_extra);
|
||||
}
|
||||
else if (glsl_core)
|
||||
{
|
||||
@ -368,9 +367,14 @@ static bool gl_glsl_compile_shader(glsl_shader_data_t *glsl,
|
||||
}
|
||||
|
||||
snprintf(version, sizeof(version), "#version %u\n", version_no);
|
||||
RARCH_LOG("[GLSL]: Using GLSL version %u.\n", version_no);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Don't leave version empty, prevent the compiler warning */
|
||||
snprintf(version, sizeof(version), "#version 110\n");
|
||||
}
|
||||
|
||||
RARCH_LOG("[GLSL]: Using GLSL %s", version);
|
||||
source[0] = version;
|
||||
source[1] = define;
|
||||
source[2] = glsl->alias_define;
|
||||
|
Loading…
x
Reference in New Issue
Block a user