GLES: Always use fragColor0 on GL 3.0+.

This commit is contained in:
Unknown W. Brackets committed 2021-04-10 16:26:39 -07:00
1 parent 1b4f0e25b7
commit 3c09b5c010
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -199,7 +199,7 @@ void GLQueueRunner::RunInitSteps(const std::vector<GLRInitStep> &steps, bool ski
// Dual source alpha
glBindFragDataLocationIndexed(program->program, 0, 0, "fragColor0");
glBindFragDataLocationIndexed(program->program, 0, 1, "fragColor1");
} else if (gl_extensions.VersionGEThan(3, 3, 0)) {
} else if (gl_extensions.VersionGEThan(3, 0, 0)) {
glBindFragDataLocation(program->program, 0, "fragColor0");
}
#elif !PPSSPP_PLATFORM(IOS)
+1 -1
View File
@@ -292,7 +292,7 @@ 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)) {
if (gl_extensions.VersionGEThan(3, 0, 0)) {
WRITE(p, "#define gl_FragColor fragColor0\n");
WRITE(p, "out vec4 fragColor0;\n");
}