From 82eb80709015b0478af50559d0773b5c4e6ea95a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 30 May 2020 22:27:59 +0200 Subject: [PATCH] - activate the texture layers if needed. --- source/glbackend/gl_texture.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/glbackend/gl_texture.cpp b/source/glbackend/gl_texture.cpp index 90706843d..253526f26 100644 --- a/source/glbackend/gl_texture.cpp +++ b/source/glbackend/gl_texture.cpp @@ -93,6 +93,9 @@ bool GLInstance::SetTexture(int picnum, FGameTexture* tex, int paletteid, int me if (TextureType == TT_INDEXED) renderState.Flags |= RF_UsePalette; else renderState.Flags &= ~RF_UsePalette; GLInterface.SetAlphaThreshold(tex->alphaThreshold); + UseBrightmaps(tex->GetBrightmap() != nullptr); + UseGlowMapping(tex->GetGlowmap() != nullptr); + UseDetailMapping(tex->GetDetailmap() != nullptr); return true; }