Ensure the lightmap gets rebuilt when the dlights disappear.

I didn't realize what that line was for when I copied the code from GL :/
This commit is contained in:
Bill Currie 2012-01-30 18:41:27 +09:00
parent e4f63fba6c
commit 4b948de225

View file

@ -128,6 +128,10 @@ R_BuildLightMap_1 (msurface_t *surf)
int i, t;
byte *out;
// If we add dlights this frame, make sure they get removed next frame
// if the dlights disappear suddenly
surf->cached_dlight = (surf->dlightframe == r_framecount);
smax = (surf->extents[0] >> 4) + 1;
tmax = (surf->extents[1] >> 4) + 1;
size = smax * tmax;