Index: src/gpu/GrReducedClip.cpp |
diff --git a/src/gpu/GrReducedClip.cpp b/src/gpu/GrReducedClip.cpp |
index 3040b463137bce1d137f2149aac7d6013c3f75ab..ca97098794d91058da93ec1dc2576eed5cdb46fc 100644 |
--- a/src/gpu/GrReducedClip.cpp |
+++ b/src/gpu/GrReducedClip.cpp |
@@ -409,7 +409,10 @@ void GrReducedClip::ReduceClipStack(const SkClipStack& stack, |
if (tighterBounds) { |
SkIRect stackIBounds; |
stackBounds.roundOut(&stackIBounds); |
- tighterBounds->intersect(queryBounds, stackIBounds); |
+ if (!tighterBounds->intersect(queryBounds, stackIBounds)) { |
+ SkASSERT(0); |
+ tighterBounds->setEmpty(); |
+ } |
bounds = tighterBounds; |
} |
} else { |