- fixed: FTextureManager::ReplaceTexture did not calculate the upscale flags.

This commit is contained in:
Christoph Oelckers 2021-02-07 09:19:56 +01:00
parent 74685a1360
commit 917eb2b5e3

View file

@ -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());