fixing bugs

This commit is contained in:
2024-09-20 21:43:23 +02:00
parent f9c05d6d7b
commit 2e08c37624
3 changed files with 4 additions and 12 deletions

View File

@@ -90,6 +90,8 @@ namespace mlx
LoadKVFDeviceVulkanFunctionPointers();
vkDestroySurfaceKHR(m_instance, surface, nullptr);
m_allocator.Init();
}
#undef MLX_LOAD_FUNCTION
@@ -191,6 +193,7 @@ namespace mlx
RenderCore::~RenderCore()
{
WaitDeviceIdle();
m_allocator.Destroy();
kvfDestroyDevice(m_device);
DebugLog("Vulkan : logical device destroyed");
kvfDestroyInstance(m_instance);