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

Commit 28764129 authored by Chet Haase's avatar Chet Haase Committed by The Android Automerger
Browse files

Reset GL buffer state after functor invocation

Functors in WebView were binding to different buffers than we
assumed in the toolkit, eventually causing a crash due to improper
dereferencing in the currently bound buffer. Fix is to reset state
after invoking functors.

Issue #6666279 Native crash in Currents, mostly on Nakasi

Change-Id: I3697812d83613fffc9193daa99beea4dbf26474a
parent 67202c93
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -299,9 +299,11 @@ status_t OpenGLRenderer::invokeFunctors(Rect& dirty) {
                mFunctors.add(f);
            }
        }
    }

        // protect against functors binding to other buffers
        mCaches.unbindMeshBuffer();
        mCaches.unbindIndicesBuffer();
        mCaches.activeTexture(0);
    }

    return result;
}