wined3d: Reset the CS state before cleaning up the device state.

Otherwise the CS might later try to unbind a resource that has already been
freed.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-09-22 21:19:31 -05:00 committed by Alexandre Julliard
parent 90a03e7926
commit 96547e622b
1 changed files with 1 additions and 0 deletions

View File

@ -1140,6 +1140,7 @@ void wined3d_device_uninit_3d(struct wined3d_device *device)
wined3d_texture_decref(texture);
}
wined3d_cs_emit_reset_state(device->cs);
state_cleanup(&device->state);
for (i = 0; i < device->adapter->d3d_info.limits.max_rt_count; ++i)
{