From 042aff872a22cadd28368676839a21be8b33e119 Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Mon, 8 Oct 2012 18:42:14 +0000 Subject: [PATCH] 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 --- src/gpu/GrContext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); } //////////////////////////////////////////////////////////////////////////////// -- 2.34.1