Fix GLES check

This commit is contained in:
Henrik Rydgård committed 2022-09-04 00:10:56 +02:00
1 parent ec173559f8
commit d6b953bddd
1 file changed
+2 -3
+2 -3
View File
@@ -569,9 +569,8 @@ OpenGLContext::OpenGLContext() {
caps_.fragmentShaderDepthWriteSupported = true;
}
#ifndef USING_GLES2
caps_.logicOpSupported = true;
#endif
// GLES has no support for logic framebuffer operations. There doesn't even seem to exist any such extensions.
caps_.logicOpSupported = !gl_extensions.IsGLES;
// Interesting potential hack for emulating GL_DEPTH_CLAMP (use a separate varying, force depth in fragment shader):
// This will induce a performance penalty on many architectures though so a blanket enable of this