Wait for device to become idle after exiting render loop

This commit is contained in:
saschawillems 2016-06-02 20:56:13 +02:00
parent cae5db72ec
commit 3a1d443e52

View file

@ -575,6 +575,8 @@ void VulkanExampleBase::renderLoop()
} }
} }
#endif #endif
// Flush device to make sure all resources can be freed
vkDeviceWaitIdle(device);
} }
void VulkanExampleBase::submitPrePresentBarrier(VkImage image) void VulkanExampleBase::submitPrePresentBarrier(VkImage image)