From 7533fbaa8ea46bca54c2f6958756c6127d867046 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 26 Feb 2020 18:10:06 +0100 Subject: [PATCH] - fixed: special 2D palettes do not have brightmaps so any such texture must be completely excluded from being checked. --- source/glbackend/gl_texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glbackend/gl_texture.cpp b/source/glbackend/gl_texture.cpp index 41c328ae7..4298ed0d1 100644 --- a/source/glbackend/gl_texture.cpp +++ b/source/glbackend/gl_texture.cpp @@ -280,7 +280,7 @@ bool GLInstance::SetTextureInternal(int picnum, FTexture* tex, int palette, int } } #if 1 - if (!(tex->PicAnim.sf & PICANM_NOFULLBRIGHT_BIT) && !(globalflags & GLOBAL_NO_GL_FULLBRIGHT) && !tex->NoBrightmapFlag[usepalswap]) + if (!(tex->PicAnim.sf & PICANM_NOFULLBRIGHT_BIT) && !(globalflags & GLOBAL_NO_GL_FULLBRIGHT) && !tex->NoBrightmapFlag[usepalswap] && !(curpaletteflags & (Pal_Fullscreen|Pal_2D))) { if (TextureType == TT_HICREPLACE) {