Reset clip in ~SkGpuDevice

https://codereview.appspot.com/6763044/



git-svn-id: http://skia.googlecode.com/svn/trunk@6070 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2012-10-24 13:24:11 +00:00
parent 1e34ff7030
commit 055f9086a8

View File

@ -256,6 +256,10 @@ SkGpuDevice::~SkGpuDevice() {
fContext->setRenderTarget(NULL);
}
if (fContext->getClip() == &fClipData) {
fContext->setClip(NULL);
}
SkSafeUnref(fRenderTarget);
fContext->unref();
}