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

Commit 9ca48916 authored by Jesse Hall's avatar Jesse Hall Committed by Android (Google) Code Review
Browse files

If there is no hwc, call eglSwapBuffers for the main display

Bug: 7068568
Change-Id: I6a0309613fe3619d065b9047af6c3fb32b510d97
parent f90883d6
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -1255,8 +1255,9 @@ void SurfaceFlinger::doDisplayComposition(const sp<const DisplayDevice>& hw,
    // FIXME: we need to call eglSwapBuffers() on displays that have
    // FIXME: we need to call eglSwapBuffers() on displays that have
    // GL composition and only on those.
    // GL composition and only on those.
    // however, currently hwc.commit() already does that for the main
    // however, currently hwc.commit() already does that for the main
    // display and never for the other ones
    // display (if there is a hwc) and never for the other ones
    if (hw->getDisplayType() >= DisplayDevice::DISPLAY_VIRTUAL) {
    if (hw->getDisplayType() >= DisplayDevice::DISPLAY_VIRTUAL ||
            getHwComposer().initCheck() != NO_ERROR) {
        // FIXME: EGL spec says:
        // FIXME: EGL spec says:
        //   "surface must be bound to the calling thread's current context,
        //   "surface must be bound to the calling thread's current context,
        //    for the current rendering API."
        //    for the current rendering API."