Skip to content

Commit

Permalink
Merge pull request #12065 from unknownbrackets/gl-error
Browse files Browse the repository at this point in the history
GLES: Use fragColor0 in GLSL 3.30 float path
  • Loading branch information
hrydgard committed May 27, 2019
2 parents dba2158 + 3ba6c1e commit a8b092a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GPU/Common/DepalettizeShaderCommon.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit a8b092a

Please sign in to comment.