diff options
author | 2012-04-02 17:43:05 -0700 | |
---|---|---|
committer | 2012-04-02 17:45:25 -0700 | |
commit | 5c88fc744db977ef26887df9605beaa409394806 (patch) | |
tree | 3c782510909ace46a555514d9b08044289107406 /libs/hwui/OpenGLRenderer.cpp | |
parent | 6db53c34a7fe8fdc2a8775dc5a400776e2716d38 (diff) |
Prevent crash when flushing the layers cache
Bug #6258973
When flushing the layer caches we would attempt to delete the FBOs
associate with layers in the cache. The FBO property was however not
always properly cleared when recycling layers.
Change-Id: I7dedfe391d659a0849f1e1d84df17313b2c6e2b2
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index eb4b83bfb017..e4d1ba90d090 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -641,6 +641,7 @@ void OpenGLRenderer::composeLayer(sp<Snapshot> current, sp<Snapshot> previous) { // Put the FBO name back in the cache, if it doesn't fit, it will be destroyed mCaches.fboCache.put(current->fbo); + layer->setFbo(0); } dirtyClip(); |