Set cleardepth the traditional way on desktop.

This commit is contained in:
Henrik Rydgard committed 2014-01-01 23:40:35 +01:00
1 parent 0fa3e0b6f2
commit a9832fb79a
1 file changed
+5 -1
+5 -1
View File
@@ -157,7 +157,11 @@ static void ClearBuffer() {
glstate.stencilFunc.set(GL_ALWAYS, 0xFF, 0xFF);
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClearStencil(0xFF);
glClearDepthf(1.0);
#ifdef USING_GLES2
glClearDepthf(1.0f);
#else
glClearDepth(1.0);
#endif
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}