mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +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;
|
||||
#endif
|
||||
|
||||
for (auto& surface : surfaces)
|
||||
{
|
||||
surface->needsUpdate = false; // it may have been set to false already, but lightmapper ultimately decides so
|
||||
}
|
||||
|
||||
UploadUniforms();
|
||||
|
||||
lastSurfaceCount = allSurfaces.Size();
|
||||
|
|
Loading…
Reference in a new issue