GLES: Use fragColor0 in GLSL 3.30 float path.

This should only happen when 32 bit ints are unsupported, which has been
reported for a few devices.
This commit is contained in:
Unknown W. Brackets 2019-05-27 00:36:48 -07:00
parent dba2158849
commit 3ba6c1e42b

View file

@ -253,6 +253,10 @@ void GenerateDepalShaderFloat(char *buffer, GEBufferFormat pixelFormat, ShaderLa
WRITE(p, "precision mediump float;\n");
} else {
WRITE(p, "#version %d\n", gl_extensions.GLSLVersion());
if (gl_extensions.VersionGEThan(3, 3)) {
WRITE(p, "#define gl_FragColor fragColor0\n");
WRITE(p, "out vec4 fragColor0;\n");
}
}
WRITE(p, "varying vec2 v_texcoord0;\n");
WRITE(p, "uniform sampler2D tex;\n");