summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-10-26 15:11:59 -0700
committerMathias Agopian <mathias@google.com>2011-10-26 15:11:59 -0700
commit01d650ed424fa07e864ee11d63f3982a0b266fe6 (patch)
tree2dca671f62cee8b0d3c69527f11f321f651a2a06 /services
parent08d0f6420ac439265e9b4086c931173b44409c51 (diff)
downloadframeworks_base-01d650ed424fa07e864ee11d63f3982a0b266fe6.zip
frameworks_base-01d650ed424fa07e864ee11d63f3982a0b266fe6.tar.gz
frameworks_base-01d650ed424fa07e864ee11d63f3982a0b266fe6.tar.bz2
fix Corrupted graphics while playing You Tube on orientation change
Bug: 5432124 Change-Id: If948b9797b1ec6fff80ca5ea94508abcaced9f31
Diffstat (limited to 'services')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index e869ba2..a6d4147 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -1784,8 +1784,10 @@ status_t SurfaceFlinger::renderScreenToTextureLocked(DisplayID dpy,
// redraw the screen entirely...
glDisable(GL_TEXTURE_EXTERNAL_OES);
glDisable(GL_TEXTURE_2D);
+ glDisable(GL_SCISSOR_TEST);
glClearColor(0,0,0,1);
glClear(GL_COLOR_BUFFER_BIT);
+ glEnable(GL_SCISSOR_TEST);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
const Vector< sp<LayerBase> >& layers(mVisibleLayersSortedByZ);