From 4e0394d7853245d9b8baac3d5494df4bc6d23f31 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 5 Aug 2016 12:39:02 +0200 Subject: [PATCH] wined3d: Use wined3d_cs_emit_unload_resource() in wined3d_device_uninit_3d(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 74a07ec7664..2215af8cd56 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1185,7 +1185,7 @@ HRESULT CDECL wined3d_device_uninit_3d(struct wined3d_device *device) LIST_FOR_EACH_ENTRY_SAFE(resource, cursor, &device->resources, struct wined3d_resource, resource_list_entry) { TRACE("Unloading resource %p.\n", resource); - resource->resource_ops->resource_unload(resource); + wined3d_cs_emit_unload_resource(device->cs, resource); } wine_rb_clear(&device->samplers, device_free_sampler, NULL);