Skip to content

Commit

Permalink
Fix precache unload bug in FHardwareTextureContainer::UnmarkAll
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas authored and madame-rachelle committed Feb 19, 2024
1 parent c9612b0 commit 144caa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/textures/hw_texcontainer.h
Expand Up @@ -137,7 +137,7 @@ class FHardwareTextureContainer
for (int i = hwTex_Translated.Size()-1; i>= 0; i--)
{
auto& tt = hwTex_Translated[i];
if (!tt.isMarkedForPreache())
if (!tt.isMarkedForPreache())
{
hwTex_Translated.Delete(i);
}
Expand All @@ -148,11 +148,11 @@ class FHardwareTextureContainer
{
for (auto& tt : hwDefTex)
{
if (!tt.isMarkedForPreache()) tt.MarkForPrecache(false);
tt.MarkForPrecache(false);
}
for (auto& tt : hwTex_Translated)
{
if (!tt.isMarkedForPreache()) tt.MarkForPrecache(false);
tt.MarkForPrecache(false);
}
}

Expand Down

0 comments on commit 144caa0

Please sign in to comment.