Skip to content

Commit 6ea851f

Browse files
committed
workaround for an issue where the screen would flicker sometimes
bug: 6020860 Change-Id: I97807db66b66c5f4dcbed0df79d5d257cfc7c0bd
1 parent f37d8fc commit 6ea851f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/surfaceflinger/SurfaceFlinger.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,12 @@ void SurfaceFlinger::composeSurfaces(const Region& dirty)
10001000
drawWormhole();
10011001
}
10021002

1003+
// FIXME: workaroud for b/6020860
1004+
glEnable(GL_SCISSOR_TEST);
1005+
glScissor(0,0,0,0);
1006+
glClear(GL_COLOR_BUFFER_BIT);
1007+
// end-workaround
1008+
10031009
/*
10041010
* and then, render the layers targeted at the framebuffer
10051011
*/

0 commit comments

Comments
 (0)