Skip to content

Commit

Permalink
unload reel atlas
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown321 committed Jan 10, 2025
1 parent cf095b9 commit 4509896
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cassette/cassette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ namespace Cassette {

Reels.clear();

for (auto &v : ReelsAtlas) {
DLOG("unload atlas %s\n", v.first.c_str());
UnloadTexture(v.second.textureID);
}

ReelsAtlas.clear();

while (updateThreadRunning || reelThreadRunning) {
// wait for threads to stop
}
Expand Down

0 comments on commit 4509896

Please sign in to comment.