Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 931bda1c authored by Mathias Agopian's avatar Mathias Agopian
Browse files

reset the gl viewport at each frame for each display

Bug: 10097128, 9506003
Change-Id: Ie0403a631e339a9134216224f3366f46ece58b53
parent 672ddf2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}

+1 −2
Original line number Diff line number Diff line
@@ -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;
}