Skip to content

Commit

Permalink
Vulkan: Free command buffer semaphores
Browse files Browse the repository at this point in the history
  • Loading branch information
goeiecool9999 committed Nov 4, 2024
1 parent c93858b commit e524e08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e524e08

Please sign in to comment.