Fix crash when deinitializing renderer

This commit is contained in:
2020-10-22 22:53:11 +02:00
parent c5f8b7bce9
commit ac09635fd7
2 changed files with 2 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ namespace openVulkanoCpp::Vulkan
for (int i = 0; i < buffers; i++)
{
device.freeCommandBuffers(cmdPools[i], 1, &cmdBuffers[i]);
device.destroyCommandPool(cmdPools[0]);
device.destroyCommandPool(cmdPools[i]);
}
for (auto shader : shaders)
{