diff --git a/Common/GPU/Vulkan/VulkanRenderManager.cpp b/Common/GPU/Vulkan/VulkanRenderManager.cpp index a9b8d85a415f..5ef997df44e9 100644 --- a/Common/GPU/Vulkan/VulkanRenderManager.cpp +++ b/Common/GPU/Vulkan/VulkanRenderManager.cpp @@ -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();