GLES: Specify glsl version precisely in depal.

Should prevent more of #11588 on vertex shaders, and may help Apple
devices some too.
This commit is contained in:
Unknown W. Brackets
2018-12-23 20:08:08 -08:00
parent 2dbdd73e5f
commit e46701dee6
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -579,7 +579,7 @@ std::string ApplyGLSLPrelude(const std::string &source, uint32_t stage) {
std::string temp;
std::string version = "";
if (!gl_extensions.IsGLES && gl_extensions.IsCoreContext) {
// We need to add a corresponding #version. Apple drives fail without an exact match.
// We need to add a corresponding #version. Apple drivers fail without an exact match.
version = StringFromFormat("#version %d\n", gl_extensions.GLSLVersion());
}
if (stage == GL_FRAGMENT_SHADER) {