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);