Destroy swap chain image views of swap chain is getting recreated
This commit is contained in:
parent
a6a327efe6
commit
67aa039dfc
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue