Delay finding the light lists until after map has loaded
This commit is contained in:
parent
cdb9f3798c
commit
ea02067b0a
4 changed files with 25 additions and 6 deletions
|
|
@ -538,6 +538,8 @@ void VulkanRenderDevice::SetLevelMesh(LevelMesh* mesh)
|
|||
{
|
||||
lastMesh = mesh;
|
||||
|
||||
mesh->UpdateLightLists();
|
||||
|
||||
GetTextureManager()->CreateLightmap(mesh->LMTextureSize, mesh->LMTextureCount);
|
||||
GetLightmap()->Raytrace(mesh);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue