aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/gpu/SkGpuDevice.cpp4
1 files changed, 4 insertions, 0 deletions
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();
}