Commit c5f49c73 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Cleanup stateblock state before enumerating resources.

parent e02d441e
......@@ -4894,6 +4894,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
wined3d_texture_decref(device->cursor_texture);
device->cursor_texture = NULL;
}
wined3d_stateblock_state_cleanup(&device->stateblock_state);
state_unbind_resources(&device->state);
}
......@@ -5082,7 +5083,6 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
}
wined3d_cs_emit_reset_state(device->cs);
state_cleanup(&device->state);
wined3d_stateblock_state_cleanup(&device->stateblock_state);
if (device->d3d_initialized)
wined3d_device_delete_opengl_contexts(device);
......
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