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

Commit 53760b4a authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

am 874ae2ad: Merge "Fix scissor for functor invocation" into klp-dev

* commit '874ae2ad':
  Fix scissor for functor invocation
parents 19c727bb 874ae2ad
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -471,12 +471,14 @@ status_t OpenGLRenderer::callDrawGLFunction(Functor* functor, Rect& dirty) {
    info.height = getSnapshot()->height;
    getSnapshot()->transform->copyTo(&info.transform[0]);

    bool dirtyClip = mDirtyClip;
    // setup GL state for functor
    if (mDirtyClip) {
        setScissorFromClip();
        setStencilFromClip(); // can issue draws, so must precede enableScissor()/interrupt()
    }
    mCaches.enableScissor();
    if (mCaches.enableScissor() || dirtyClip) {
        setScissorFromClip();
    }
    interrupt();

    // call functor immediately after GL state setup