From bcb6c36ef2a40dc4453be8e59280699594d00114 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 24 Jul 2020 23:46:52 +0200 Subject: [PATCH] - fixed bad parameter for EnableFog --- source/glbackend/glbackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glbackend/glbackend.cpp b/source/glbackend/glbackend.cpp index 602b14723..4afe2e13c 100644 --- a/source/glbackend/glbackend.cpp +++ b/source/glbackend/glbackend.cpp @@ -236,7 +236,7 @@ void PolymostRenderState::Apply(FRenderState& state, GLState& oldState) // Disable brightmaps if non-black fog is used. if (!(Flags & RF_FogDisabled) && ShadeDiv >= 1 / 1000.f) { - state.EnableFog(FogColor.isBlack() && !(Flags & RF_MapFog) ? 1 : -1); + state.EnableFog(1); } else state.EnableFog(0); state.SetFog((Flags & RF_MapFog) ? PalEntry(0x999999) : FogColor, 21.f); // Fixme: The real density still needs to be implemented. 21 is a reasonable default only.