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

Commit 874ae2ad authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Fix scissor for functor invocation" into klp-dev

parents 895a4375 25d2f7bc
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -471,12 +471,14 @@ status_t OpenGLRenderer::callDrawGLFunction(Functor* functor, Rect& dirty) {
    info.height = getSnapshot()->height;
    info.height = getSnapshot()->height;
    getSnapshot()->transform->copyTo(&info.transform[0]);
    getSnapshot()->transform->copyTo(&info.transform[0]);


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


    // call functor immediately after GL state setup
    // call functor immediately after GL state setup