Fix crash on maps with polyobjs
This commit is contained in:
parent
f9dcd98695
commit
f532975754
2 changed files with 2 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue