mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 21:55:52 +00:00
Use glClearDepthf instead of glClearDepth during replay in case of GLES
Because GLES doesn't support glClearDepth.
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user