Skip to content

Commit

Permalink
Clear stencil to 0, not 1.
Browse files Browse the repository at this point in the history
Memory is generally initially zeros, after all.  Fixes #5205 (or at least
improves it?) and fixes #6226.
  • Loading branch information
unknownbrackets committed Jun 18, 2014
1 parent b5eb072 commit 19f35bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GPU/GLES/Framebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19f35bb

Please sign in to comment.