Skip to content

Commit

Permalink
Renamed BurnoutImage.cs to GameImage.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Human Gamer committed Sep 18, 2019
1 parent f857714 commit f27857e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion BundleUtilities/TextureCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ public static class TextureCache

public static void ResetCache()
{
foreach (uint key in _cachedTextures.Keys)
foreach (ulong key in _cachedTextures.Keys)
{
Image img = _cachedTextures[key];
img.Dispose();
}
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
_cachedTextures.Clear();
}

Expand Down
2 changes: 1 addition & 1 deletion BurnoutImage/BurnoutImage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="BurnoutImage.cs" />
<Compile Include="GameImage.cs" />
<Compile Include="ClusterFit.cs" />
<Compile Include="ColourFit.cs" />
<Compile Include="ColourSet.cs" />
Expand Down
File renamed without changes.

0 comments on commit f27857e

Please sign in to comment.