Retrieve the light list on the fly rather than try to sync it

This commit is contained in:
Magnus Norddahl 2023-09-22 16:35:50 +02:00
commit 1dd2605200
7 changed files with 81 additions and 27 deletions

View file

@ -482,7 +482,6 @@ void VulkanRenderDevice::BeginFrame()
if (levelMesh && levelMesh->GetSurfaceCount() > 0)
{
levelMesh->UpdateLightLists();
GetTextureManager()->CreateLightmap(levelMesh->LMTextureSize, levelMesh->LMTextureCount, std::move(levelMesh->LMTextureData));
GetLightmap()->SetLevelMesh(levelMesh);
}