From 917eb2b5e328bd5e46181131a8afde362ae06be3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 7 Feb 2021 09:19:56 +0100 Subject: [PATCH] - fixed: FTextureManager::ReplaceTexture did not calculate the upscale flags. --- src/common/textures/texturemanager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/textures/texturemanager.cpp b/src/common/textures/texturemanager.cpp index 4a505600b..c07a52fb5 100644 --- a/src/common/textures/texturemanager.cpp +++ b/src/common/textures/texturemanager.cpp @@ -496,6 +496,11 @@ void FTextureManager::ReplaceTexture (FTextureID picnum, FGameTexture *newtextur if (unsigned(index) >= Textures.Size()) return; + if (newtexture->GetTexture()) + { + calcShouldUpscale(newtexture); // calculate this once at insertion + } + auto oldtexture = Textures[index].Texture; newtexture->SetName(oldtexture->GetName());