Commit a9dca944 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Free shader backend and fragment pipe context data in device_context_remove().

parent 6bb5724a
......@@ -2347,8 +2347,6 @@ void wined3d_context_destroy(struct wined3d_context *context)
return;
}
device->shader_backend->shader_free_context_data(context);
device->adapter->fragment_pipe->free_context_data(context);
device_context_remove(device, context);
wined3d_context_gl_destroy(wined3d_context_gl(context));
......
......@@ -168,6 +168,9 @@ void device_context_remove(struct wined3d_device *device, struct wined3d_context
TRACE("Removing context %p.\n", context);
device->adapter->fragment_pipe->free_context_data(context);
device->shader_backend->shader_free_context_data(context);
for (i = 0; i < device->context_count; ++i)
{
if (device->contexts[i] == context)
......
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