Fix crash when building the accel struct for scenes with no level mesh
This commit is contained in:
parent
2bc64af799
commit
0d976d35c5
6 changed files with 19 additions and 17 deletions
|
|
@ -73,8 +73,7 @@ void VkLightmapper::ReleaseResources()
|
|||
void VkLightmapper::SetLevelMesh(LevelMesh* level)
|
||||
{
|
||||
mesh = level;
|
||||
if (mesh)
|
||||
UpdateAccelStructDescriptors();
|
||||
UpdateAccelStructDescriptors();
|
||||
|
||||
lightmapRaytraceLast.Reset();
|
||||
lastPixelCount = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue