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)