diff options
author | 2011-06-16 13:14:21 +0000 | |
---|---|---|
committer | 2011-06-16 13:14:21 +0000 | |
commit | c29d7cdf3ee768057e9e98dfffa012e3c017295a (patch) | |
tree | 5cf5704817070993183d5b23fcfe6ff2b8c24952 /gpu/src/GrGLTexture.cpp | |
parent | 8ac7a0fcef6c830935905fdaeda97cab87581ce8 (diff) |
Always call notifyTextureDelete in onRelease.
Reviewed at http://codereview.appspot.com/4620050/
git-svn-id: http://skia.googlecode.com/svn/trunk@1611 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGLTexture.cpp')
-rw-r--r-- | gpu/src/GrGLTexture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu/src/GrGLTexture.cpp b/gpu/src/GrGLTexture.cpp index 59b11625fa..fec1e74e37 100644 --- a/gpu/src/GrGLTexture.cpp +++ b/gpu/src/GrGLTexture.cpp @@ -40,9 +40,9 @@ GrGLRenderTarget::GrGLRenderTarget(GrGpuGL* gpu, } void GrGLRenderTarget::onRelease() { + GPUGL->notifyRenderTargetDelete(this); if (fOwnIDs) { if (fTexFBOID) { - GPUGL->notifyRenderTargetDelete(this); GR_GL(DeleteFramebuffers(1, &fTexFBOID)); } if (fRTFBOID && fRTFBOID != fTexFBOID) { @@ -139,8 +139,8 @@ GrGLTexture::GrGLTexture(GrGpuGL* gpu, void GrGLTexture::onRelease() { INHERITED::onRelease(); + GPUGL->notifyTextureDelete(this); if (NULL != fTexIDObj) { - GPUGL->notifyTextureDelete(this); fTexIDObj->unref(); fTexIDObj = NULL; } |