Skip to content

Commit 01d650e

Browse files
committed
fix Corrupted graphics while playing You Tube on orientation change
Bug: 5432124 Change-Id: If948b9797b1ec6fff80ca5ea94508abcaced9f31
1 parent 08d0f64 commit 01d650e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/surfaceflinger/SurfaceFlinger.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,8 +1784,10 @@ status_t SurfaceFlinger::renderScreenToTextureLocked(DisplayID dpy,
17841784
// redraw the screen entirely...
17851785
glDisable(GL_TEXTURE_EXTERNAL_OES);
17861786
glDisable(GL_TEXTURE_2D);
1787+
glDisable(GL_SCISSOR_TEST);
17871788
glClearColor(0,0,0,1);
17881789
glClear(GL_COLOR_BUFFER_BIT);
1790+
glEnable(GL_SCISSOR_TEST);
17891791
glMatrixMode(GL_MODELVIEW);
17901792
glLoadIdentity();
17911793
const Vector< sp<LayerBase> >& layers(mVisibleLayersSortedByZ);

0 commit comments

Comments
 (0)