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:
parent
70418f69dd
commit
2ff9a8f08a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue