From dca7acb2fe2df8db7b1e665f9e49677cb96e9c9c Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Wed, 23 Feb 2011 21:47:37 +0000 Subject: [PATCH] set the rgn to empty if the clipstack says empty (in our validate routine) git-svn-id: http://skia.googlecode.com/svn/trunk@843 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkCanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 1ca31df..639c0d4 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -1016,7 +1016,7 @@ void SkCanvas::validateClip() const { clip->fRect->round(&ir); clipRgn.op(ir, clip->fOp); } else { - break; + clipRgn.setEmpty(); } } -- 2.7.4