From 055f9086a83423b33d69dda5b2c847b2c7c09718 Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Wed, 24 Oct 2012 13:24:11 +0000 Subject: [PATCH] Reset clip in ~SkGpuDevice https://codereview.appspot.com/6763044/ git-svn-id: http://skia.googlecode.com/svn/trunk@6070 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/SkGpuDevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index dadb9a0584..52d26bb210 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -256,6 +256,10 @@ SkGpuDevice::~SkGpuDevice() { fContext->setRenderTarget(NULL); } + if (fContext->getClip() == &fClipData) { + fContext->setClip(NULL); + } + SkSafeUnref(fRenderTarget); fContext->unref(); }