Wait for device to become idle after exiting render loop
This commit is contained in:
parent
cae5db72ec
commit
3a1d443e52
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue