From 3a1d443e528ce14f08ecdf4f3f04e6f4f7edae2a Mon Sep 17 00:00:00 2001 From: saschawillems Date: Thu, 2 Jun 2016 20:56:13 +0200 Subject: [PATCH] Wait for device to become idle after exiting render loop --- base/vulkanexamplebase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index fa34cdcc..ca942ef3 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -575,6 +575,8 @@ void VulkanExampleBase::renderLoop() } } #endif + // Flush device to make sure all resources can be freed + vkDeviceWaitIdle(device); } void VulkanExampleBase::submitPrePresentBarrier(VkImage image)