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
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp
index a17f7d7..09ddab3 100644
--- a/src/gpu/gl/GrGpuGL.cpp
+++ b/src/gpu/gl/GrGpuGL.cpp
@@ -516,6 +516,8 @@
     }
 
     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 @@
     if (fHWBounds.fScissorEnabled) {
         GL_CALL(Disable(GR_GL_SCISSOR_TEST));
         fHWBounds.fScissorEnabled = false;
-//        fHWBounds.fScissorRect.invalidate();
     }
 }