[PATCH 2/5] wined3d: Handle blits to Vulkan swapchains not matching the D3D swapchain.

Chip Davis cdavis at codeweavers.com
Fri Mar 5 11:45:03 CST 2021


March 5, 2021 10:06 AM, "Matteo Bruni" <mbruni at 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



More information about the wine-devel mailing list