Zebediah Figura : wined3d: Reset the CS state before cleaning up the device state.
Alexandre Julliard
julliard at winehq.org
Mon Sep 23 15:22:34 CDT 2019
Module: wine
Branch: master
Commit: 96547e622b04f403bc0c78d649275d1f844ed40e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=96547e622b04f403bc0c78d649275d1f844ed40e
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Sun Sep 22 21:19:31 2019 -0500
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 at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index c8fae1275c..62341290ff 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -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)
{
More information about the wine-cvs
mailing list