wined3d: Do not fail swapchain creation in wined3d_swapchain_vk_init() if a Vulkan swapchain could not be created.

While far from ideal, we can still use swapchain_blit_gdi() to get
back-buffers to the screen.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-02-19 21:31:12 +01:00 committed by Alexandre Julliard
parent 70418f69dd
commit 2ff9a8f08a
1 changed files with 2 additions and 5 deletions

View File

@ -1710,12 +1710,9 @@ HRESULT wined3d_swapchain_vk_init(struct wined3d_swapchain_vk *swapchain_vk, str
}
if (FAILED(hr = wined3d_swapchain_vk_create_vulkan_swapchain(swapchain_vk)))
{
wined3d_swapchain_cleanup(&swapchain_vk->s);
return hr;
}
WARN("Failed to create a Vulkan swapchain, hr %#x.\n", hr);
return hr;
return WINED3D_OK;
}
HRESULT CDECL wined3d_swapchain_create(struct wined3d_device *device,