summaryrefslogtreecommitdiff
path: root/libs/hwui/LayerCache.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2011-07-26 18:57:28 -0700
committer Romain Guy <romainguy@google.com> 2011-07-26 18:57:28 -0700
commit912a7b32d0c59ba38265c5dd6ff84ce93f909a7f (patch)
treee4a7ef6e99a302ce7489d773b004dfb984fa2c30 /libs/hwui/LayerCache.cpp
parent7c0d89ac97260634c3687c8c8136328c967d68ed (diff)
Make sure we have a current EGL context when invoking EGL
Bug #5081795 Change-Id: Iee3382d362a71c1e6c5c498b319bf7f7bcf5a2f0
Diffstat (limited to 'libs/hwui/LayerCache.cpp')
-rw-r--r--libs/hwui/LayerCache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/LayerCache.cpp b/libs/hwui/LayerCache.cpp
index 36083afd53bc..58c0fac67d18 100644
--- a/libs/hwui/LayerCache.cpp
+++ b/libs/hwui/LayerCache.cpp
@@ -69,6 +69,7 @@ void LayerCache::setMaxSize(uint32_t maxSize) {
void LayerCache::deleteLayer(Layer* layer) {
if (layer) {
mSize -= layer->getWidth() * layer->getHeight() * 4;
+ layer->deleteFbo();
layer->deleteTexture();
delete layer;
}