From 5c88fc744db977ef26887df9605beaa409394806 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Mon, 2 Apr 2012 17:43:05 -0700 Subject: 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 --- libs/hwui/OpenGLRenderer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/hwui/OpenGLRenderer.cpp') 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 current, sp 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(); -- cgit v1.2.3-59-g8ed1b