don't try to write lightmap if it has no styles

This commit is contained in:
Jonathan 2024-03-13 01:41:48 -04:00
parent 0cdd932ef7
commit 062814cad0
1 changed files with 4 additions and 0 deletions

View File

@ -795,6 +795,10 @@ void SaveLightmapSurface(const mbsp_t *bsp, mface_t *face, facesup_t *facesup,
const int output_width = output_extents.width();
const int output_height = output_extents.height();
if (id.sorted.empty()) {
return; // no styles to write
}
Q_assert(id.lightofs >= 0);
/* update face info (either core data or supplementary stuff) */