aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLGpu.cpp
diff options
context:
space:
mode:
authorGravatar Adrienne Walker <enne@chromium.org>2018-05-21 11:05:48 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-21 18:41:39 +0000
commit3a69c7441572c7ed72520358c95dfbbddeb394ae (patch)
treef57cdf7344a2b3767870862f2a5a23ec036c7031 /src/gpu/gl/GrGLGpu.cpp
parent6d138bf681eee54a8b4a40e5dbbd08a137ae0d93 (diff)
Fix unit tests when workarounds are enabled
Change-Id: Ia660a6d91aa3615e0fa21fba67f5029c131b1ba2 Reviewed-on: https://skia-review.googlesource.com/128983 Commit-Queue: Adrienne Walker <enne@chromium.org> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r--src/gpu/gl/GrGLGpu.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp
index 1822d65274..36f7ed5c17 100644
--- a/src/gpu/gl/GrGLGpu.cpp
+++ b/src/gpu/gl/GrGLGpu.cpp
@@ -3399,7 +3399,9 @@ void GrGLGpu::bindFramebuffer(GrGLenum target, GrGLuint fboid) {
}
// The driver forgets the correct scissor when modifying the FBO binding.
- fHWScissorSettings.fRect.pushToGLScissor(this->glInterface());
+ if (!fHWScissorSettings.fRect.isInvalid()) {
+ fHWScissorSettings.fRect.pushToGLScissor(this->glInterface());
+ }
// crbug.com/222018 - Also on QualComm, the flush here avoids flicker,
// it's unclear how this bug works.