Skip to content

Commit

Permalink
Vulkan: Delete only created swapchain images.
Browse files Browse the repository at this point in the history
We do other null checks here, same reason.  Create may have failed.
  • Loading branch information
unknownbrackets committed Jan 17, 2021
1 parent 8fe9bed commit 6ca9acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/GPU/Vulkan/VulkanRenderManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ void VulkanRenderManager::DestroyBackbuffers() {
StopThread();
vulkan_->WaitUntilQueueIdle();

for (uint32_t i = 0; i < swapchainImageCount_; i++) {
vulkan_->Delete().QueueDeleteImageView(swapchainImages_[i].view);
for (auto &image : swapchainImages_) {
vulkan_->Delete().QueueDeleteImageView(image.view);
}
swapchainImages_.clear();

Expand Down

0 comments on commit 6ca9acf

Please sign in to comment.