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

Commit 57a532e6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixed incorrect usage of native fences" into pi-dev

parents 2ce2f517 a45e1c8f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -984,7 +984,8 @@ status_t GLConsumer::doGLFenceWaitLocked() const {
    }

    if (mCurrentFence->isValid()) {
        if (SyncFeatures::getInstance().useWaitSync()) {
        if (SyncFeatures::getInstance().useWaitSync() &&
            SyncFeatures::getInstance().useNativeFenceSync()) {
            // Create an EGLSyncKHR from the current fence.
            int fenceFd = mCurrentFence->dup();
            if (fenceFd == -1) {