Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spearmint: Fix repeatedly overbrighting the light grid
Running vid_restart repeatedly in a map caused the ambient light to increase as reported by r_debugLight 1. (It stops at 255 bightness and normalizes the color.) Spearmint's BSP abstraction layer shares the same BSP data for collision and the renderer. The renderer applied overbright to the bspFile_t light grid data each time it registered the map causing the changes to persist across vid_restart. The renderer now allocates memory for overbright light grid.
- Loading branch information