Skip to content

Commit

Permalink
hwui: Don't discard framebuffer on exynos4
Browse files Browse the repository at this point in the history
The layers gets empty/not cleaned and redrawn on top of the preview,
causing beautiful glitch on homescreen, and drawing black instead
of transparency.

Change-Id: I633b104224c73c625f1193ee3dde41823cddc5bf
  • Loading branch information
xplodwild committed Jul 28, 2013
1 parent 8833bb1 commit 0e73024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/hwui/LayerRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ void LayerRenderer::destroyLayerDeferred(Layer* layer) {
}

void LayerRenderer::flushLayer(Layer* layer) {
#ifdef GL_EXT_discard_framebuffer
#if defined(GL_EXT_discard_framebuffer) && !defined(EXYNOS4_ENHANCEMENTS)
GLuint fbo = layer->getFbo();
if (layer && fbo) {
// If possible, discard any enqueud operations on deferred
Expand Down

0 comments on commit 0e73024

Please sign in to comment.