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

Commit fe9ddf72 authored by Geoffrey Pitsch's avatar Geoffrey Pitsch Committed by android-build-merger
Browse files

Merge \\"Wait until end of BootAnimation to free looping textures\\" into...

Merge \\"Wait until end of BootAnimation to free looping textures\\" into nyc-mr1-dev am: f1439105
am: ffa690de

Change-Id: I4aece05132e7f88e2ac51fd44db036dace996303
parents 6859d18a ffa690de
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -839,8 +839,12 @@ bool BootAnimation::playAnimation(const Animation& animation)
                break;
        }

        // free the textures for this part
    }

    // Free textures created for looping parts now that the animation is done.
    for (const Animation::Part& part : animation.parts) {
        if (part.count != 1) {
            const size_t fcount = part.frames.size();
            for (size_t j = 0; j < fcount; j++) {
                const Animation::Frame& frame(part.frames[j]);
                glDeleteTextures(1, &frame.tid);