Commit 2ad540ce authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Pass an IWineD3DResourceImpl pointer to device_resource_remove().

parent 9f8d0088
......@@ -6604,11 +6604,11 @@ void device_resource_add(IWineD3DDeviceImpl *This, IWineD3DResource *resource)
list_add_head(&This->resources, &((IWineD3DResourceImpl *) resource)->resource.resource_list_entry);
}
static void device_resource_remove(IWineD3DDeviceImpl *This, IWineD3DResource *resource)
static void device_resource_remove(struct IWineD3DDeviceImpl *device, struct IWineD3DResourceImpl *resource)
{
TRACE("(%p) : Removing resource %p\n", This, resource);
TRACE("device %p, resource %p.\n", device, resource);
list_remove(&((IWineD3DResourceImpl *) resource)->resource.resource_list_entry);
list_remove(&resource->resource.resource_list_entry);
}
void device_resource_released(IWineD3DDeviceImpl *device, IWineD3DResource *resource)
......@@ -6705,7 +6705,7 @@ void device_resource_released(IWineD3DDeviceImpl *device, IWineD3DResource *reso
}
/* Remove the resource from the resourceStore */
device_resource_remove(device, resource);
device_resource_remove(device, (IWineD3DResourceImpl *)resource);
TRACE("Resource released.\n");
}
......
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