Use glClearDepthf instead of glClearDepth during replay in case of GLES

Because GLES doesn't support glClearDepth.
This commit is contained in:
Janos Pantos authored and Baldur Karlsson committed 2017-06-22 11:37:41 -07:00
1 parent 094b9ebf35
commit 506954ffb8
1 file changed
+4 -1
@@ -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;