Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/funkin/FunkinMemory.hx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class FunkinMemory
graphic.persist = true;
permanentCachedTextures.set(key, graphic);
forceRender(graphic);
currentCachedTextures = permanentCachedTextures;
currentCachedTextures = permanentCachedTextures.copy();
}

/**
Expand Down Expand Up @@ -211,7 +211,7 @@ class FunkinMemory
*/
public inline static function preparePurgeTextureCache():Void
{
previousCachedTextures = currentCachedTextures;
previousCachedTextures = currentCachedTextures.copy();

for (graphicKey in previousCachedTextures.keys())
{
Expand All @@ -221,7 +221,7 @@ class FunkinMemory
}
}

currentCachedTextures = permanentCachedTextures;
currentCachedTextures = permanentCachedTextures.copy();
}

/**
Expand Down Expand Up @@ -358,7 +358,7 @@ class FunkinMemory

public static function preparePurgeSoundCache():Void
{
previousCachedSounds = currentCachedSounds;
previousCachedSounds = currentCachedSounds.copy();

for (key in previousCachedSounds.keys())
{
Expand All @@ -368,7 +368,7 @@ class FunkinMemory
}
}

currentCachedSounds = permanentCachedSounds;
currentCachedSounds = permanentCachedSounds.copy();
}

/**
Expand Down