Fix reset of scissor state in onResetContext

Review URL: http://codereview.appspot.com/6061046/



git-svn-id: http://skia.googlecode.com/svn/trunk@3709 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2012-04-17 19:29:51 +00:00
parent f11508d7f4
commit b72f203fc4

View File

@ -516,6 +516,8 @@ void GrGpuGL::onResetContext() {
}
fHWBounds.fScissorRect.invalidate();
// set to true to force disableScissor to make a GL call.
fHWBounds.fScissorEnabled = true;
this->disableScissor();
fHWBounds.fViewportRect.invalidate();
@ -1344,7 +1346,6 @@ void GrGpuGL::disableScissor() {
if (fHWBounds.fScissorEnabled) {
GL_CALL(Disable(GR_GL_SCISSOR_TEST));
fHWBounds.fScissorEnabled = false;
// fHWBounds.fScissorRect.invalidate();
}
}