Vulkan: Free command buffer semaphores

This commit is contained in:
goeiecool9999 2024-11-04 19:59:14 +01:00
parent c93858bf96
commit e524e080e1

View file

@ -677,6 +677,12 @@ VulkanRenderer::~VulkanRenderer()
it = VK_NULL_HANDLE;
}
for(auto& sem : m_commandBufferSemaphores)
{
vkDestroySemaphore(m_logicalDevice, sem, nullptr);
sem = VK_NULL_HANDLE;
}
if (m_pipelineLayout != VK_NULL_HANDLE)
vkDestroyPipelineLayout(m_logicalDevice, m_pipelineLayout, nullptr);