wined3d: Pass an IWineD3DResourceImpl pointer to device_resource_remove().