diff options
author | 2011-03-10 14:51:57 +0000 | |
---|---|---|
committer | 2011-03-10 14:51:57 +0000 | |
commit | 1da0746fa155cdca982ae8deb68cc64f540c92df (patch) | |
tree | 26516a2f983e8179c9ffd539c7989e917ce3412e /gpu/src/GrContext.cpp | |
parent | a7f84e150cb9e821267a8ca9e59c1ae9a3cfa300 (diff) |
Delete GL tex ID when last of GrGLTexture or GrGLRenderTarget that reference it is destroyed
git-svn-id: http://skia.googlecode.com/svn/trunk@915 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrContext.cpp')
-rw-r--r-- | gpu/src/GrContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu/src/GrContext.cpp b/gpu/src/GrContext.cpp index c6fa618920..cf51cc9e6f 100644 --- a/gpu/src/GrContext.cpp +++ b/gpu/src/GrContext.cpp @@ -1,5 +1,5 @@ /* - Copyright 2010 Google Inc. + Copyright 2011 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -172,7 +172,7 @@ GrTextureEntry* GrContext::createAndLockTexture(GrTextureKey* key, 0, 4); entry = fTextureCache->createAndLock(*key, texture); } - texture->removeRenderTarget(); + texture->releaseRenderTarget(); } else { // TODO: Our CPU stretch doesn't filter. But we create separate // stretched textures when the sampler state is either filtered or |