Fix crash on maps with polyobjs

This commit is contained in:
Magnus Norddahl 2023-10-09 23:32:48 +02:00
commit f532975754
2 changed files with 2 additions and 5 deletions

View file

@ -540,10 +540,7 @@ void VulkanRenderDevice::SetLevelMesh(LevelMesh* mesh)
void VulkanRenderDevice::UpdateLightmaps(const TArray<LevelMeshSurface*>& surfaces)
{
if (surfaces.Size() > 0 && levelMesh)
{
GetLightmap()->Raytrace(surfaces);
}
GetLightmap()->Raytrace(surfaces);
}
void VulkanRenderDevice::SetShadowMaps(const TArray<float>& lights, hwrenderer::LevelAABBTree* tree, bool newTree)