Skip to content

Commit

Permalink
- default-enable GL_DEPTH_CLAMP for the GLES renderer.
Browse files Browse the repository at this point in the history
This brings it in line with the other backends.
  • Loading branch information
coelckers committed Dec 7, 2021
1 parent 5aa4243 commit a8c4d61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/common/rendering/gles/gles_framebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a8c4d61

Please sign in to comment.