summaryrefslogtreecommitdiff
path: root/libs/hwui/GradientCache.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2013-06-07 00:07:05 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2013-06-07 00:07:05 +0000
commit241ef0cc4271bc3f6cf462bfc442d52cd2286f00 (patch)
tree36bf50894cc8bd08a0d738a2473ad4d7d05461c1 /libs/hwui/GradientCache.cpp
parent494cb689d09a82025b9d892241e62aa149ce3239 (diff)
parentbe1b127c7bec252e0c6ab0e06ed6babed07d496f (diff)
Merge "Assume a texture is unbound after deleting it Bug #9316260"
Diffstat (limited to 'libs/hwui/GradientCache.cpp')
-rw-r--r--libs/hwui/GradientCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/GradientCache.cpp b/libs/hwui/GradientCache.cpp
index 1ed04faec94f..1815bffcc3fb 100644
--- a/libs/hwui/GradientCache.cpp
+++ b/libs/hwui/GradientCache.cpp
@@ -120,7 +120,7 @@ void GradientCache::operator()(GradientCacheEntry& shader, Texture*& texture) {
const uint32_t size = texture->width * texture->height * bytesPerPixel();
mSize -= size;
- glDeleteTextures(1, &texture->id);
+ texture->deleteTexture();
delete texture;
}
}