From 144caa0902e9aeba0d9fcb1fdf9c1a2b8473ea7a Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Mon, 19 Feb 2024 12:25:05 +0100 Subject: [PATCH] Fix precache unload bug in FHardwareTextureContainer::UnmarkAll --- src/common/textures/hw_texcontainer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/textures/hw_texcontainer.h b/src/common/textures/hw_texcontainer.h index f75b02753c..e8777b00e1 100644 --- a/src/common/textures/hw_texcontainer.h +++ b/src/common/textures/hw_texcontainer.h @@ -137,7 +137,7 @@ public: 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); } @@ -148,11 +148,11 @@ public: { 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); } }