diff options
author | 2011-08-26 14:27:59 +0000 | |
---|---|---|
committer | 2011-08-26 14:27:59 +0000 | |
commit | 5f226572b3b6e1a6fea11f5f3c862a47158f66fe (patch) | |
tree | 69e7f761c6e7dc7c58d66bdbfbe499d3385be7e7 /gpu/src/GrClip.cpp | |
parent | fa510413c18263784dc322f136dec2367dc15f18 (diff) |
rolling tree back to its state as of r2169 to see if that fixes Windows buildbots
git-svn-id: http://skia.googlecode.com/svn/trunk@2179 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrClip.cpp')
-rw-r--r-- | gpu/src/GrClip.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gpu/src/GrClip.cpp b/gpu/src/GrClip.cpp index ade8c2b971..7ccec261a1 100644 --- a/gpu/src/GrClip.cpp +++ b/gpu/src/GrClip.cpp @@ -138,9 +138,13 @@ void GrClip::setFromIterator(GrClipIterator* iter, GrScalar tx, GrScalar ty, } } fConservativeBoundsValid = false; - if (isectRectValid && rectCount) { - fConservativeBounds = fList[0].fRect; + if (isectRectValid) { fConservativeBoundsValid = true; + if (rectCount > 0) { + fConservativeBounds = fList[0].fRect; + } else { + fConservativeBounds.setEmpty(); + } } else if (NULL != conservativeBounds) { fConservativeBounds = *conservativeBounds; fConservativeBoundsValid = true; |