Commit 96547e62 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 90a03e79
......@@ -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)
{
......
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