- make sure that incomplete multipatch textures are technically complete.

They need a valid FTexture backing them and should have their name cleared so that nothing references them by accident.
This commit is contained in:
Christoph Oelckers 2020-06-02 20:15:55 +02:00
commit 8f07ab87c8
2 changed files with 4 additions and 1 deletions

View file

@ -923,7 +923,10 @@ void FMultipatchTextureBuilder::ResolveAllPatches()
for (auto &b : BuiltTextures)
{
Printf("%s\n", b.Name.GetChars());
// make it hard to find but also ensure that it references valid backing data.
b.texture->SetUseType(ETextureType::Null);
b.texture->SetBase(TexMan.GameByIndex(0)->GetTexture());
b.texture->SetName("");
}
break;
}