Clear depth buffers to zero, not 1.0f.

Memory is generally initially zeros.
This commit is contained in:
Unknown W. Brackets 2014-06-17 23:56:33 -07:00
parent a9da3618ba
commit b5eb072e64

View file

@ -179,9 +179,9 @@ void FramebufferManager::ClearBuffer() {
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClearStencil(0xFF);
#ifdef USING_GLES2
glClearDepthf(1.0f);
glClearDepthf(0.0f);
#else
glClearDepth(1.0);
glClearDepth(0.0);
#endif
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}
@ -190,9 +190,9 @@ void FramebufferManager::ClearDepthBuffer() {
glstate.scissorTest.disable();
glstate.depthWrite.set(GL_TRUE);
#ifdef USING_GLES2
glClearDepthf(1.0f);
glClearDepthf(0.0f);
#else
glClearDepth(1.0);
glClearDepth(0.0);
#endif
glClear(GL_DEPTH_BUFFER_BIT);
}