- fixed crash in texture deinit code and ensure that everything gets deleted.

This commit is contained in:
Christoph Oelckers 2019-10-16 21:16:40 +02:00
parent 37322d001d
commit 4cd2c024fc
6 changed files with 45 additions and 28 deletions

View file

@ -524,7 +524,7 @@ int32_t polymost_maskWallHasTranslucency(uwalltype const * const wall)
if (palookup[pal] == NULL)
pal = 0;
auto tex = FTexture::GetTexture(si->filename);
auto tex = TileFiles.GetTexture(si->filename);
return tex && tex->GetTranslucency();
}
@ -545,7 +545,7 @@ int32_t polymost_spriteHasTranslucency(uspritetype const * const tspr)
if (palookup[pal] == NULL)
pal = 0;
auto tex = FTexture::GetTexture(si->filename);
auto tex = TileFiles.GetTexture(si->filename);
return tex && tex->GetTranslucency();
}