From 6793fa71575ec840d902e453e3f68478066abf7d Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 26 Sep 2013 09:31:53 +0200 Subject: [PATCH] wined3d: Initialize the default state in device_init(). --- dlls/wined3d/device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 20143387bbd..bcafa9f9591 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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;