March 5, 2021 10:06 AM, "Matteo Bruni" mbruni@codeweavers.com wrote:
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index 72e17a6f833..ab04a771d68 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -1142,8 +1162,16 @@ static void wined3d_swapchain_vk_blit(struct wined3d_swapchain_vk *swapchain_vk, present_desc.pSwapchains = &swapchain_vk->vk_swapchain; present_desc.pImageIndices = &image_idx; present_desc.pResults = NULL;
- if ((vr = VK_CALL(vkQueuePresentKHR(device_vk->vk_queue, &present_desc))))
- vr = VK_CALL(vkQueuePresentKHR(device_vk->vk_queue, &present_desc));
- if (vr == VK_ERROR_OUT_OF_DATE_KHR)
What about VK_SUBOPTIMAL_KHR?
Chip