Clear stencil to 0, not 1.

Memory is generally initially zeros, after all.  Fixes #5205 (or at least
improves it?) and fixes #6226.
This commit is contained in:
Unknown W. Brackets 2014-06-17 23:57:20 -07:00
parent b5eb072e64
commit 19f35bbac1

View file

@ -175,9 +175,9 @@ void FramebufferManager::ClearBuffer() {
glstate.scissorTest.disable();
glstate.depthWrite.set(GL_TRUE);
glstate.colorMask.set(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
glstate.stencilFunc.set(GL_ALWAYS, 0xFF, 0xFF);
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClearStencil(0xFF);
glstate.stencilFunc.set(GL_ALWAYS, 0, 0);
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glClearStencil(0);
#ifdef USING_GLES2
glClearDepthf(0.0f);
#else