mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-30 02:30:41 +00:00
- fixed: black fog does not mean FogColor == 0 because its alpha component is non-0
This commit is contained in:
parent
43a9be0ad0
commit
28c5c72605
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ void PolymostRenderState::Apply(FRenderState& state, GLState& oldState)
|
||||||
state.SetDepthFunc(DepthFunc);
|
state.SetDepthFunc(DepthFunc);
|
||||||
oldState.DepthFunc = DepthFunc;
|
oldState.DepthFunc = DepthFunc;
|
||||||
}
|
}
|
||||||
bool foggy = (GLInterface.useMapFog || FogColor);
|
bool foggy = (GLInterface.useMapFog || (FogColor & 0xffffff));
|
||||||
// Disable brightmaps if non-black fog is used.
|
// Disable brightmaps if non-black fog is used.
|
||||||
if (!(Flags & RF_FogDisabled) && ShadeDiv >= 1 / 1000.f && foggy)
|
if (!(Flags & RF_FogDisabled) && ShadeDiv >= 1 / 1000.f && foggy)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue