Allow scissor, but not depthtest during glClear().

Improves #6210.
This commit is contained in:
Unknown W. Brackets 2014-06-01 10:34:57 -07:00
parent 111b624000
commit 003f20c694

View file

@ -400,8 +400,9 @@ void TransformDrawEngine::SoftwareTransformAndDraw(
framebufferManager_->SetDepthUpdated();
}
glstate.stencilTest.set(false);
glstate.scissorTest.set(false);
// Note that scissor may still apply while clearing. Turn off other tests for the clear.
glstate.stencilTest.disable();
glstate.depthTest.disable();
GLbitfield target = 0;
if (colorMask || alphaMask) target |= GL_COLOR_BUFFER_BIT;