- fix true color software crash in square and other maps

This commit is contained in:
Magnus Norddahl 2018-04-17 09:01:34 +02:00
parent 7a11be8615
commit 4870cc73e2
1 changed files with 2 additions and 1 deletions

View File

@ -1079,7 +1079,8 @@ void FTexture::CreateDefaultBrightmap()
// Check for brightmaps
if (UseBasePalette() && TexMan.HasGlobalBrightmap &&
UseType != ETextureType::Decal && UseType != ETextureType::MiscPatch && UseType != ETextureType::FontChar &&
Brightmap == NULL && bWarped == 0
Brightmap == NULL && bWarped == 0 &&
GetPixels(DefaultRenderStyle())
)
{
// May have one - let's check when we use this texture