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

Commit 4a2bff7b authored by Chris Craik's avatar Chris Craik
Browse files

Avoid incorrectly dirtying the functor output rect

bug:8640186
Change-Id: I360cb85e59cfdd0b499561e92b81089341d07046
parent 7ffb2fb3
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -459,7 +459,7 @@ 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]);


    status_t result = (*functor)(DrawGlInfo::kModeDraw, &info) | DrawGlInfo::kStatusDrew;
    status_t result = (*functor)(DrawGlInfo::kModeDraw, &info);


    if (result != DrawGlInfo::kStatusDone) {
    if (result != DrawGlInfo::kStatusDone) {
        Rect localDirty(info.dirtyLeft, info.dirtyTop, info.dirtyRight, info.dirtyBottom);
        Rect localDirty(info.dirtyLeft, info.dirtyTop, info.dirtyRight, info.dirtyBottom);
@@ -471,7 +471,7 @@ status_t OpenGLRenderer::callDrawGLFunction(Functor* functor, Rect& dirty) {
    }
    }


    resume();
    resume();
    return result;
    return result | DrawGlInfo::kStatusDrew;
}
}


///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////