diff options
author | Mathias Agopian <mathias@google.com> | 2012-02-23 21:20:01 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-02-23 21:20:01 -0800 |
commit | 6ea851fadf16b98d76d9afbee1a9cbb015a44034 (patch) | |
tree | 88a4989bc5a325e17155f51d2967f20d6c279fd1 | |
parent | f37d8fcf053ad77797e6e411805f223f83ce7ecc (diff) |
workaround for an issue where the screen would flicker sometimes
bug: 6020860
Change-Id: I97807db66b66c5f4dcbed0df79d5d257cfc7c0bd
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 68521138f920..9d821dc47203 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1000,6 +1000,12 @@ void SurfaceFlinger::composeSurfaces(const Region& dirty) drawWormhole(); } + // FIXME: workaroud for b/6020860 + glEnable(GL_SCISSOR_TEST); + glScissor(0,0,0,0); + glClear(GL_COLOR_BUFFER_BIT); + // end-workaround + /* * and then, render the layers targeted at the framebuffer */ |