Fix unmap asserts
This commit is contained in:
parent
706256b969
commit
44c75fb9a7
1 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,10 @@ VkLightmap::VkLightmap(VulkanRenderDevice* fb) : fb(fb)
|
|||
|
||||
VkLightmap::~VkLightmap()
|
||||
{
|
||||
if (vertices.Buffer)
|
||||
vertices.Buffer->Unmap();
|
||||
if (lights.Buffer)
|
||||
lights.Buffer->Unmap();
|
||||
}
|
||||
|
||||
void VkLightmap::Raytrace(hwrenderer::LevelMesh* level)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue