mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-30 07:31:12 +00:00
- fixed possible AMD compilation error.
This commit is contained in:
parent
9a777f719b
commit
3154652885
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ float R_DoomLightingEquation(float light)
|
||||||
float shade = 64.0 - (L + 12.0) * 32.0/128.0;
|
float shade = 64.0 - (L + 12.0) * 32.0/128.0;
|
||||||
float lightscale;
|
float lightscale;
|
||||||
if (uPalLightLevels != 0)
|
if (uPalLightLevels != 0)
|
||||||
lightscale = clamp(int(shade - min(24.0, vis)) / 32.0, 0.0, 31.0/32.0);
|
lightscale = clamp(float(int(shade - min(24.0, vis))) / 32.0, 0.0, 31.0/32.0);
|
||||||
else
|
else
|
||||||
lightscale = clamp((shade - min(24.0, vis)) / 32.0, 0.0, 31.0/32.0);
|
lightscale = clamp((shade - min(24.0, vis)) / 32.0, 0.0, 31.0/32.0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue