mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 18:21:06 +00:00
- fixed crash in texture deinit code and ensure that everything gets deleted.
This commit is contained in:
parent
37322d001d
commit
4cd2c024fc
6 changed files with 45 additions and 28 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue