am 931bda1c: reset the gl viewport at each frame for each display

* commit '931bda1c472ba8c8e965bdba6757ff94154df903':
  reset the gl viewport at each frame for each display
This commit is contained in:
Mathias Agopian 2013-08-28 18:17:28 -07:00 committed by Android Git Automerger
commit ecebe12e70
2 changed files with 2 additions and 3 deletions

View File

@ -271,9 +271,9 @@ EGLBoolean DisplayDevice::makeCurrent(EGLDisplay dpy, EGLContext ctx) const {
if (result == EGL_TRUE) {
if (mType >= DisplayDevice::DISPLAY_VIRTUAL)
eglSwapInterval(dpy, 0);
setViewportAndProjection();
}
}
setViewportAndProjection();
return result;
}

View File

@ -2726,6 +2726,7 @@ void SurfaceFlinger::renderScreenImplLocked(
// compositionComplete is needed for older driver
hw->compositionComplete();
hw->setViewportAndProjection();
}
@ -2805,8 +2806,6 @@ status_t SurfaceFlinger::captureScreenImplLocked(
native_window_api_disconnect(window, NATIVE_WINDOW_API_EGL);
}
hw->setViewportAndProjection();
return result;
}