diff --git a/src/rendering/gl/renderer/gl_renderstate.cpp b/src/rendering/gl/renderer/gl_renderstate.cpp index 8bb637ca4..4eb25647b 100644 --- a/src/rendering/gl/renderer/gl_renderstate.cpp +++ b/src/rendering/gl/renderer/gl_renderstate.cpp @@ -128,7 +128,7 @@ bool FGLRenderState::ApplyShader() activeShader->muFogEnabled.Set(fogset); int f = mTextureModeFlags; - if (!mBrightmapEnabled) f &= TEXF_Detailmap; + if (!mBrightmapEnabled) f &= ~(TEXF_Brightmap | TEXF_Glowmap); activeShader->muTextureMode.Set((mTextureMode == TM_NORMAL && mTempTM == TM_OPAQUE ? TM_OPAQUE : mTextureMode) | f); activeShader->muLightParms.Set(mLightParms); activeShader->muFogColor.Set(mStreamData.uFogColor); diff --git a/src/rendering/vulkan/renderer/vk_renderstate.cpp b/src/rendering/vulkan/renderer/vk_renderstate.cpp index f5cc42e76..ca08b4134 100644 --- a/src/rendering/vulkan/renderer/vk_renderstate.cpp +++ b/src/rendering/vulkan/renderer/vk_renderstate.cpp @@ -374,7 +374,7 @@ void VkRenderState::ApplyPushConstants() mPushConstants.uFogEnabled = fogset; int f = mTextureModeFlags; - if (!mBrightmapEnabled) + if (!mBrightmapEnabled) f &= ~(TEXF_Brightmap|TEXF_Glowmap); mPushConstants.uTextureMode = (mTextureMode == TM_NORMAL && tempTM == TM_OPAQUE ? TM_OPAQUE : mTextureMode) | f; mPushConstants.uLightDist = mLightParms[0]; mPushConstants.uLightFactor = mLightParms[1];