Fix #version statement for GLES 2.0 vertex shaders

This commit is contained in:
Henrik Rydgård 2020-11-01 18:06:03 +01:00
parent 2e9f42a75f
commit 4053c3d1ec

View File

@ -122,7 +122,7 @@ bool GenerateVertexShaderGLSL(const VShaderID &id, char *buffer, const ShaderLan
highpFog = (gl_extensions.bugs & BUG_PVR_SHADER_PRECISION_BAD) ? true : false; highpFog = (gl_extensions.bugs & BUG_PVR_SHADER_PRECISION_BAD) ? true : false;
highpTexcoord = highpFog; highpTexcoord = highpFog;
} }
WRITE(p, "#version %d%s\n", compat.glslVersionNumber, compat.gles ? " es" : ""); WRITE(p, "#version %d%s\n", compat.glslVersionNumber, compat.glslES30 ? " es" : "");
WRITE(p, "#define splat3(x) vec3(x)\n"); WRITE(p, "#define splat3(x) vec3(x)\n");
} }