Fixing pool shutdown.

This commit is contained in:
Ben Vanik
2016-02-21 10:46:47 -08:00
parent b3faba50a3
commit 32c4f3ce24
2 changed files with 19 additions and 12 deletions

View File

@@ -53,6 +53,7 @@ CommandBufferPool::CommandBufferPool(VkDevice device,
}
CommandBufferPool::~CommandBufferPool() {
FreeAllEntries();
vkDestroyCommandPool(device_, command_pool_, nullptr);
command_pool_ = nullptr;
}