mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
GLES: Always use fragColor0 on GL 3.0+.
This commit is contained in:
1 parent
1b4f0e25b7
commit
3c09b5c010
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user