light: add Lightmap_ClearAll util function
This commit is contained in:
parent
2c73da0856
commit
8db1f56a20
|
|
@ -893,6 +893,18 @@ Lightmap_ForStyle(lightmap_t *lightmaps, const int style, const lightsurf_t *lig
|
|||
return lightmap;
|
||||
}
|
||||
|
||||
/*
|
||||
* Lightmap_ClearAll
|
||||
*
|
||||
* Sets all styles to 255, doesn't actually clear the data.
|
||||
*/
|
||||
void Lightmap_ClearAll(lightmap_t *lightmaps)
|
||||
{
|
||||
for (int i = 0; i <= MAXLIGHTMAPS; i++) {
|
||||
lightmaps[i].style = 255;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Lightmap_Save
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue