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

Commit d1eec0b1 authored by John Reck's avatar John Reck
Browse files

Add missing MODE_FULL check

Only pushStaging in MODE_FULL, otherwise staging is unsafe

Bug: 414927676
Test: speculative
Flag: EXEMPT hwasan bugfix
Change-Id: Ibb2562a60f89a81427074c80ecee875e3e28be3d
parent c848f92c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -68,7 +68,9 @@ void AnimationContext::runRemainingAnimations(TreeInfo& info) {
    while (mCurrentFrameAnimations.mNextHandle) {
        AnimationHandle* current = mCurrentFrameAnimations.mNextHandle;
        AnimatorManager& animators = current->mRenderNode->animators();
        if (info.mode == TreeInfo::MODE_FULL) {
            animators.pushStaging();
        }
        animators.animateNoDamage(info);
        LOG_ALWAYS_FATAL_IF(mCurrentFrameAnimations.mNextHandle == current,
                            "Animate failed to remove from current frame list!");