commit | 055f9086a83423b33d69dda5b2c847b2c7c09718 | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Oct 24 13:24:11 2012 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Oct 24 13:24:11 2012 +0000 |
tree | bbb6ab86a65afec500c220ae7eaeb6db78ea1e32 | |
parent | 1e34ff7030c95a96c3cd5940de9b4dda4e1cef86 [diff] [blame] |
Reset clip in ~SkGpuDevice https://codereview.appspot.com/6763044/ git-svn-id: http://skia.googlecode.com/svn/trunk@6070 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index dadb9a0..52d26bb 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp
@@ -256,6 +256,10 @@ fContext->setRenderTarget(NULL); } + if (fContext->getClip() == &fClipData) { + fContext->setClip(NULL); + } + SkSafeUnref(fRenderTarget); fContext->unref(); }