Index: src/gpu/GrClipMaskManager.cpp |
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp |
index b2b3603b9445bca32ae66271c811d7c3f86bcc18..8e57fc84d5586570b9f73314b955e6a22e8f1287 100644 |
--- a/src/gpu/GrClipMaskManager.cpp |
+++ b/src/gpu/GrClipMaskManager.cpp |
@@ -258,7 +258,7 @@ bool GrClipMaskManager::SetupClipping(GrContext* context, |
&clipSpaceIBounds, |
&requiresAA); |
if (elements.isEmpty()) { |
- if (GrReducedClip::kAllOut_InitialState == initialState) { |
+ if (GrReducedClip::kAllOut_InitialState == initialState || clipSpaceIBounds.isEmpty()) { |
return false; |
} else { |
SkIRect scissorSpaceIBounds(clipSpaceIBounds); |