mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 14:41:40 +00:00
- fixed: Instead of mapping Hexen's BLANK texture to the null texture, make its actual use type that of a null texture.
The software renderer does not have any safeguards against such a mapping and crashes on it. This code was a quick hack from ancient times from when ZDoom did not have robust texture management and some recent changes ran afoul of this very special exception.
This commit is contained in:
parent
2cff43ba90
commit
2fd1276d28
1 changed files with 3 additions and 2 deletions
|
@ -1051,13 +1051,14 @@ void FTextureManager::Init()
|
|||
|
||||
// The Hexen scripts use BLANK as a blank texture, even though it's really not.
|
||||
// I guess the Doom renderer must have clipped away the line at the bottom of
|
||||
// the texture so it wasn't visible. I'll just map it to 0, so it really is blank.
|
||||
// the texture so it wasn't visible. Change its use type to a blank null texture to really make it blank.
|
||||
if (gameinfo.gametype == GAME_Hexen)
|
||||
{
|
||||
FTextureID tex = CheckForTexture ("BLANK", ETextureType::Wall, false);
|
||||
if (tex.Exists())
|
||||
{
|
||||
SetTranslation (tex, 0);
|
||||
auto texture = GetTexture(tex, false);
|
||||
texture->UseType = ETextureType::Null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue