Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rendervulkan: ensure queue is idle before swapchain recreation
The CVulkanDevice::waitIdle call at the beginning of vulkan_remake_swapchain only waits for the most recently submitted command buffer to complete. This is inadequate because it does not wait for any additional commands which may have been submitted by the driver during vkQueuePresentKHR. Such commands could reference resources associated with the old swapchain, so it is not safe to destroy it until they are also complete. To fix the issue, instead of calling CVulkanDevice::waitIdle, vulkan_remake_swapchain will call vkQueueWaitIdle. Fixes: #945
- Loading branch information