From 4870cc73e2a21618f15d1c978cfcb12927572e63 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Tue, 17 Apr 2018 09:01:34 +0200 Subject: [PATCH] - fix true color software crash in square and other maps --- src/textures/texture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/textures/texture.cpp b/src/textures/texture.cpp index ac72a8027..bf04fa86a 100644 --- a/src/textures/texture.cpp +++ b/src/textures/texture.cpp @@ -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