Skip to content

Commit

Permalink
Merge pull request #13933 from unknownbrackets/vulkan
Browse files Browse the repository at this point in the history
Vulkan: Delete only created swapchain images
  • Loading branch information
hrydgard authored Jan 17, 2021
2 parents 8fe9bed + 6ca9acf commit 6fe2bb9
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 6fe2bb9

Please sign in to comment.