mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Clear out the lightmap scrap at each level change.
This allows the demo loop to run more than 4 times (12 demos). Once the rest of the resource management is done, demos should run indefinitely.
This commit is contained in:
parent
fc43e5a307
commit
42bb10a3d7
1 changed files with 3 additions and 0 deletions
|
@ -197,6 +197,9 @@ R_BuildLightmaps (model_t **models, int num_models)
|
|||
if (!light_scrap) {
|
||||
light_scrap = GL_CreateScrap (2048, GL_LUMINANCE);
|
||||
light_data = malloc (BLOCK_SIZE * MAX_LIGHTMAPS);
|
||||
} else {
|
||||
GL_ScrapClear (light_scrap);
|
||||
memset (light_data, 0, BLOCK_SIZE * MAX_LIGHTMAPS);
|
||||
}
|
||||
R_BuildLightMap = R_BuildLightMap_1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue