commit | bae92d0d605e99a14731add4f11b72413b2835e5 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Fri Sep 28 01:00:47 2012 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Sep 28 13:34:26 2012 -0700 |
tree | d0fcccabcc250eb6d82bc00a1281f01f41494d0a | |
parent | c01a79d77b829e7de86ef137694e8ad708470ca1 [diff] [blame] |
reset GL viewport and project when caputring the screen Bug: 7241739 Change-Id: I3bb5214b070384de9be2026647865c6c236a4331
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 8cfaa31..eea0e6b 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -2510,6 +2510,8 @@ glFramebufferTexture2DOES(GL_FRAMEBUFFER_OES, GL_COLOR_ATTACHMENT0_OES, GL_TEXTURE_2D, tname, 0); + DisplayDevice::setViewportAndProjection(hw); + // redraw the screen entirely... glDisable(GL_TEXTURE_EXTERNAL_OES); glDisable(GL_TEXTURE_2D);