Fix unmap asserts

This commit is contained in:
Magnus Norddahl 2023-09-02 12:27:12 +02:00 committed by Christoph Oelckers
parent 684bfb3e9e
commit 87f52367ad

View file

@ -25,6 +25,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)