- fixed the attenuation check in gl_GetLight.

This commit is contained in:
Christoph Oelckers 2017-03-17 20:16:49 +01:00
parent 7d8d69d01b
commit fee18a6971

View file

@ -113,7 +113,7 @@ bool gl_GetLight(int group, Plane & p, ADynamicLight * light, bool checkside, FD
if (gl_attenuate == -1) attenuate = !!(light->flags4 & MF4_ATTENUATE); if (gl_attenuate == -1) attenuate = !!(light->flags4 & MF4_ATTENUATE);
else attenuate = !!gl_attenuate; else attenuate = !!gl_attenuate;
shadowIndex = -shadowIndex; if (attenuate) shadowIndex = -shadowIndex;
float *data = &ldata.arrays[i][ldata.arrays[i].Reserve(8)]; float *data = &ldata.arrays[i][ldata.arrays[i].Reserve(8)];
data[0] = pos.X; data[0] = pos.X;