diff options
author | 2012-10-08 18:42:14 +0000 | |
---|---|---|
committer | 2012-10-08 18:42:14 +0000 | |
commit | 042aff872a22cadd28368676839a21be8b33e119 (patch) | |
tree | 2572332363c12db3bd706d6931977e0a1b0c2000 /src | |
parent | 2fdcdeb86788206c23410109b3e2b7976747fd11 (diff) |
Speculative fix for Chrome bug
https://codereview.appspot.com/6632045/
git-svn-id: http://skia.googlecode.com/svn/trunk@5855 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index d702031733..32e6346ac9 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -570,7 +570,8 @@ const GrClipData* GrContext::getClip() const { void GrContext::setClip(const GrClipData* clipData) { fGpu->setClip(clipData); - fDrawState->setState(GrDrawState::kClip_StateBit, !clipData->fClipStack->isWideOpen()); + fDrawState->setState(GrDrawState::kClip_StateBit, + clipData->fClipStack && !clipData->fClipStack->isWideOpen()); } //////////////////////////////////////////////////////////////////////////////// |