- fixed possible AMD compilation error.

This commit is contained in:
Rachael Alexanderson 2017-01-24 14:01:42 -05:00 committed by Christoph Oelckers
parent 9a777f719b
commit 3154652885

View file

@ -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);