summaryrefslogtreecommitdiff
path: root/libs/hwui/PathCache.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/PathCache.cpp
parent494cb689d09a82025b9d892241e62aa149ce3239 (diff)
parentbe1b127c7bec252e0c6ab0e06ed6babed07d496f (diff)
Merge "Assume a texture is unbound after deleting it Bug #9316260"
Diffstat (limited to 'libs/hwui/PathCache.cpp')
-rw-r--r--libs/hwui/PathCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/PathCache.cpp b/libs/hwui/PathCache.cpp
index 3f6485cbf718..3ab40dae9c6f 100644
--- a/libs/hwui/PathCache.cpp
+++ b/libs/hwui/PathCache.cpp
@@ -223,7 +223,7 @@ void PathCache::removeTexture(PathTexture* texture) {
}
if (texture->id) {
- glDeleteTextures(1, &texture->id);
+ Caches::getInstance().deleteTexture(texture->id);
}
delete texture;
}