Use glClearDepthf instead of glClearDepth during replay in case of GLES

Because GLES doesn't support glClearDepth.
This commit is contained in:
Janos Pantos
2017-06-22 11:37:41 -07:00
committed by Baldur Karlsson
parent 094b9ebf35
commit 506954ffb8
@@ -542,7 +542,10 @@ bool WrappedOpenGL::Serialise_glClearDepth(GLdouble depth)
if(m_State <= EXECUTING)
{
m_Real.glClearDepth(d);
if(IsGLES)
m_Real.glClearDepthf((float)d);
else
m_Real.glClearDepth(d);
}
return true;