zink: don't destroy swapchain on initial CreateSwapchainKHR fail
this used to be correct at some point but now it no longer is cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23970>
This commit is contained in:
committed by
Marge Bot
parent
2fc2597fe5
commit
54bd804ad3
@@ -313,7 +313,6 @@ kopper_CreateSwapchain(struct zink_screen *screen, struct kopper_displaytarget *
|
||||
VkResult result = VKSCR(QueueWaitIdle)(screen->queue);
|
||||
if (result != VK_SUCCESS)
|
||||
mesa_loge("ZINK: vkQueueWaitIdle failed (%s)", vk_Result_to_str(result));
|
||||
zink_kopper_deinit_displaytarget(screen, cdt);
|
||||
error = VKSCR(CreateSwapchainKHR)(screen->dev, &cswap->scci, NULL,
|
||||
&cswap->swapchain);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user