From a8c4d61fab65a11e1d17f18d85761b82a4802afb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 8 Dec 2021 00:19:49 +0100 Subject: [PATCH] - default-enable GL_DEPTH_CLAMP for the GLES renderer. This brings it in line with the other backends. --- source/common/rendering/gles/gles_framebuffer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/common/rendering/gles/gles_framebuffer.cpp b/source/common/rendering/gles/gles_framebuffer.cpp index 70684f5f2dd..3d44dd4d9f7 100644 --- a/source/common/rendering/gles/gles_framebuffer.cpp +++ b/source/common/rendering/gles/gles_framebuffer.cpp @@ -138,6 +138,7 @@ void OpenGLFrameBuffer::InitializeState() glDisable(GL_POLYGON_OFFSET_FILL); glEnable(GL_BLEND); + if (gles.depthClampAvailable) glEnable(GL_DEPTH_CLAMP); glDisable(GL_DEPTH_TEST);