VulkanRenderer: Wait for device idle before recreating the swapchain
This commit is contained in:
@@ -486,6 +486,9 @@ namespace Nz
|
|||||||
swapchainPresentMode = VK_PRESENT_MODE_IMMEDIATE_KHR;
|
swapchainPresentMode = VK_PRESENT_MODE_IMMEDIATE_KHR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure all operations on the device have been finished before recreating the swapchain (this can be avoided but is more complicated)
|
||||||
|
m_device->WaitForIdle();
|
||||||
|
|
||||||
VkSwapchainCreateInfoKHR swapchainInfo = {
|
VkSwapchainCreateInfoKHR swapchainInfo = {
|
||||||
VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR,
|
VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR,
|
||||||
nullptr,
|
nullptr,
|
||||||
|
|||||||
Reference in New Issue
Block a user