mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 07:12:36 +00:00
Fix lightmapper running background tasks forever
This commit is contained in:
parent
9b3a3c6115
commit
834480995c
1 changed files with 5 additions and 0 deletions
|
@ -96,6 +96,11 @@ void VkLightmap::Raytrace(LevelMesh* level, const TArray<LevelMeshSurface*>& sur
|
||||||
const auto& allSurfaces = surfaces;
|
const auto& allSurfaces = surfaces;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
for (auto& surface : surfaces)
|
||||||
|
{
|
||||||
|
surface->needsUpdate = false; // it may have been set to false already, but lightmapper ultimately decides so
|
||||||
|
}
|
||||||
|
|
||||||
UploadUniforms();
|
UploadUniforms();
|
||||||
|
|
||||||
lastSurfaceCount = allSurfaces.Size();
|
lastSurfaceCount = allSurfaces.Size();
|
||||||
|
|
Loading…
Reference in a new issue