Destroy swap chain image views of swap chain is getting recreated

This commit is contained in:
saschawillems 2016-04-09 18:59:46 +02:00
parent a6a327efe6
commit 67aa039dfc

View file

@ -331,6 +331,10 @@ public:
// This also cleans up all the presentable images
if (oldSwapchain != VK_NULL_HANDLE)
{
for (uint32_t i = 0; i < imageCount; i++)
{
vkDestroyImageView(device, buffers[i].view, nullptr);
}
fpDestroySwapchainKHR(device, oldSwapchain, nullptr);
}