wined3d: Cleanup stateblock state before enumerating resources.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46617
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46618
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2019-02-11 18:21:03 +01:00 committed by Alexandre Julliard
parent e02d441ebf
commit c5f49c73f8
1 changed files with 1 additions and 1 deletions

View File

@ -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);