mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 16:43:38 +00:00
wined3d: Fix up the backbuffer count on failure in swapchain_init().
This commit is contained in:
parent
2401a82bdc
commit
ddae20b689
|
@ -952,6 +952,7 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, struct wined3
|
|||
parent, &surface_desc, &swapchain->back_buffers[i])))
|
||||
{
|
||||
WARN("Failed to create back buffer %u, hr %#x.\n", i, hr);
|
||||
swapchain->desc.backbuffer_count = i;
|
||||
goto err;
|
||||
}
|
||||
surface_set_swapchain(swapchain->back_buffers[i], swapchain);
|
||||
|
|
Loading…
Reference in a new issue