Commit ddae20b6 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Fix up the backbuffer count on failure in swapchain_init().

parent 2401a82b
...@@ -952,6 +952,7 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, struct wined3 ...@@ -952,6 +952,7 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, struct wined3
parent, &surface_desc, &swapchain->back_buffers[i]))) parent, &surface_desc, &swapchain->back_buffers[i])))
{ {
WARN("Failed to create back buffer %u, hr %#x.\n", i, hr); WARN("Failed to create back buffer %u, hr %#x.\n", i, hr);
swapchain->desc.backbuffer_count = i;
goto err; goto err;
} }
surface_set_swapchain(swapchain->back_buffers[i], swapchain); surface_set_swapchain(swapchain->back_buffers[i], swapchain);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment