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:
parent
b5eb072e64
commit
19f35bbac1
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue