mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
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:
parent
dba2158849
commit
3ba6c1e42b
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue