mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
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:
parent
e4f63fba6c
commit
4b948de225
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue