Fix precache unload bug in FHardwareTextureContainer::UnmarkAll

This commit is contained in:
Magnus Norddahl 2024-02-19 12:25:05 +01:00 committed by Rachael Alexanderson
parent c9612b0cab
commit 144caa0902
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -137,7 +137,7 @@ public:
for (int i = hwTex_Translated.Size()-1; i>= 0; i--) for (int i = hwTex_Translated.Size()-1; i>= 0; i--)
{ {
auto& tt = hwTex_Translated[i]; auto& tt = hwTex_Translated[i];
if (!tt.isMarkedForPreache()) if (!tt.isMarkedForPreache())
{ {
hwTex_Translated.Delete(i); hwTex_Translated.Delete(i);
} }
@ -148,11 +148,11 @@ public:
{ {
for (auto& tt : hwDefTex) for (auto& tt : hwDefTex)
{ {
if (!tt.isMarkedForPreache()) tt.MarkForPrecache(false); tt.MarkForPrecache(false);
} }
for (auto& tt : hwTex_Translated) for (auto& tt : hwTex_Translated)
{ {
if (!tt.isMarkedForPreache()) tt.MarkForPrecache(false); tt.MarkForPrecache(false);
} }
} }