mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 23:21:41 +00:00
- fixed: FTextureManager::ReplaceTexture did not calculate the upscale flags.
This commit is contained in:
parent
74685a1360
commit
917eb2b5e3
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue