mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- fixed: Light level must be clamped before accessing the distfogtable.
This commit is contained in:
parent
887014c322
commit
baa775b31c
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ float gl_GetFogDensity(int lightlevel, PalEntry fogcolor)
|
||||||
// case 1: black fog
|
// case 1: black fog
|
||||||
if (glset.lightmode != 8)
|
if (glset.lightmode != 8)
|
||||||
{
|
{
|
||||||
density=distfogtable[glset.lightmode!=0][lightlevel];
|
density=distfogtable[glset.lightmode!=0][gl_ClampLight(lightlevel)];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue