diff options
Diffstat (limited to 'src/gpu/GrReducedClip.cpp')
-rw-r--r-- | src/gpu/GrReducedClip.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/GrReducedClip.cpp b/src/gpu/GrReducedClip.cpp index 3040b46313..ca97098794 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 { |