mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
wined3d: Fix up the backbuffer count on failure in swapchain_init().
This commit is contained in:
parent
2401a82bdc
commit
ddae20b689
1 changed files with 1 additions and 0 deletions
|
@ -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