aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-24 13:24:11 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-24 13:24:11 +0000
commit055f9086a83423b33d69dda5b2c847b2c7c09718 (patch)
treebbb6ab86a65afec500c220ae7eaeb6db78ea1e32 /src
parent1e34ff7030c95a96c3cd5940de9b4dda4e1cef86 (diff)
Reset clip in ~SkGpuDevice
Diffstat (limited to 'src')
-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();
}