summaryrefslogtreecommitdiff
path: root/libs/hwui/Image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/Image.cpp')
-rw-r--r--libs/hwui/Image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/Image.cpp b/libs/hwui/Image.cpp
index 77c23001f5b3..edf3930856ea 100644
--- a/libs/hwui/Image.cpp
+++ b/libs/hwui/Image.cpp
@@ -54,7 +54,7 @@ Image::~Image() {
eglDestroyImageKHR(eglGetDisplay(EGL_DEFAULT_DISPLAY), mImage);
mImage = EGL_NO_IMAGE_KHR;
- glDeleteTextures(1, &mTexture);
+ Caches::getInstance().deleteTexture(mTexture);
mTexture = 0;
}
}