Re-enable depth clamping

This commit is contained in:
Emile Belanger 2021-10-24 10:52:42 +01:00 committed by Christoph Oelckers
parent f0f0ca020b
commit ff009cbf7a
3 changed files with 10 additions and 4 deletions

View file

@ -724,10 +724,13 @@ void FGLRenderState::ClearScreen()
bool FGLRenderState::SetDepthClamp(bool on)
{
bool res = mLastDepthClamp;
/*
if (!on) glDisable(GL_DEPTH_CLAMP);
else glEnable(GL_DEPTH_CLAMP);
*/
if (gles.depthClampAvailable)
{
if (!on) glDisable(GL_DEPTH_CLAMP);
else glEnable(GL_DEPTH_CLAMP);
}
mLastDepthClamp = on;
return res;
}