Fix crash when building the accel struct for scenes with no level mesh

This commit is contained in:
Magnus Norddahl 2025-01-27 21:21:14 +01:00
commit 0d976d35c5
6 changed files with 19 additions and 17 deletions

View file

@ -73,8 +73,7 @@ void VkLightmapper::ReleaseResources()
void VkLightmapper::SetLevelMesh(LevelMesh* level)
{
mesh = level;
if (mesh)
UpdateAccelStructDescriptors();
UpdateAccelStructDescriptors();
lightmapRaytraceLast.Reset();
lastPixelCount = 0;