From b72f203fc41a2cc65d009114e60480214084db7e Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Tue, 17 Apr 2012 19:29:51 +0000 Subject: 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 --- src/gpu/gl/GrGpuGL.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp index a17f7d7446..09ddab3b16 100644 --- a/src/gpu/gl/GrGpuGL.cpp +++ b/src/gpu/gl/GrGpuGL.cpp @@ -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(); } } -- cgit v1.2.3