Commit 6793fa71 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Initialize the default state in device_init().

parent df64b0fb
......@@ -896,8 +896,6 @@ HRESULT CDECL wined3d_device_init_3d(struct wined3d_device *device,
goto err_out;
}
device->swapchains[0] = swapchain;
state_init_default(&device->state, device);
device_init_swapchain_state(device, swapchain);
context = context_acquire(device, swapchain->front_buffer);
......@@ -4984,6 +4982,7 @@ HRESULT device_init(struct wined3d_device *device, struct wined3d *wined3d,
wined3d_decref(device->wined3d);
return hr;
}
state_init_default(&device->state, device);
device->update_state = &device->state;
return WINED3D_OK;
......
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