- 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

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