commit | 9ec075366ed94802a142fc5e948d19a774f85b43 | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri Jun 22 12:01:30 2012 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri Jun 22 12:01:30 2012 +0000 |
tree | 036349ff57b4b2a2a00f153cbb9105efd4b673cd | |
parent | 1e4b990679f5c993a8d6e4646a46e12beb6c5cb2 [diff] [blame] |
Altered GrDrawState to always ref texture and render target http://codereview.appspot.com/6251049/ git-svn-id: http://skia.googlecode.com/svn/trunk@4298 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 3ce70d1..46b06d8 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp
@@ -257,6 +257,10 @@ delete fDrawProcs; } + // The SkGpuDevice gives the context the render target (e.g., in gainFocus) + // This call gives the context a chance to relinquish it + fContext->setRenderTarget(NULL); + SkSafeUnref(fTexture); SkSafeUnref(fRenderTarget); if (fCache.texture()) {