- fixed: black fog does not mean FogColor == 0 because its alpha component is non-0

This commit is contained in:
Christoph Oelckers 2020-09-22 22:15:27 +02:00
parent 43a9be0ad0
commit 28c5c72605

View file

@ -234,7 +234,7 @@ void PolymostRenderState::Apply(FRenderState& state, GLState& oldState)
state.SetDepthFunc(DepthFunc);
oldState.DepthFunc = DepthFunc;
}
bool foggy = (GLInterface.useMapFog || FogColor);
bool foggy = (GLInterface.useMapFog || (FogColor & 0xffffff));
// Disable brightmaps if non-black fog is used.
if (!(Flags & RF_FogDisabled) && ShadeDiv >= 1 / 1000.f && foggy)
{