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

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

Merge "When disconnecting a surface, cancel don't queue the buffer" into jb-mr2-dev

parents 86306b58 5f555569
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -420,9 +420,8 @@ void egl_window_surface_v2_t::disconnect()
        bits = NULL;
        unlock(buffer);
    }
    // enqueue the last frame
    nativeWindow->queueBuffer(nativeWindow, buffer, -1);
    if (buffer) {
        nativeWindow->cancelBuffer(nativeWindow, buffer, -1);
        buffer->common.decRef(&buffer->common);
        buffer = 0;
    }