Sets all the lightmaps to unused
| 36 | static int Lightmap_mem_used = 0; |
| 37 | // Sets all the lightmaps to unused |
| 38 | void lm_InitLightmaps() { |
| 39 | int i; |
| 40 | for (i = 0; i < MAX_LIGHTMAPS; i++) { |
| 41 | GameLightmaps[i].flags = 0; |
| 42 | GameLightmaps[i].used = 0; |
| 43 | GameLightmaps[i].data = NULL; |
| 44 | GameLightmaps[i].cache_slot = -1; |
| 45 | Free_lightmap_list[i] = i; |
| 46 | } |
| 47 | atexit(lm_ShutdownLightmaps); |
| 48 | } |
| 49 | void lm_ShutdownLightmaps(void) { |
| 50 | int i; |
| 51 | mprintf(0, "Freeing all lightmap memory.\n"); |