mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed bad parameter for EnableFog
This commit is contained in:
parent
3d36e4839f
commit
bcb6c36ef2
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue