wined3d: Use wined3d_cs_emit_unload_resource() in wined3d_texture_update_desc().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-08-10 18:44:45 +02:00 committed by Alexandre Julliard
parent 0bdb6ffe60
commit 565cd2b84c
1 changed files with 1 additions and 1 deletions

View File

@ -1135,7 +1135,7 @@ HRESULT CDECL wined3d_texture_update_desc(struct wined3d_texture *texture, UINT
}
if (device->d3d_initialized)
texture->resource.resource_ops->resource_unload(&texture->resource);
wined3d_cs_emit_unload_resource(device->cs, &texture->resource);
sub_resource = &texture->sub_resources[0];
surface = sub_resource->u.surface;