wined3d: Wait for the texture to become idle before modifying it 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-09-20 11:41:41 +02:00 committed by Alexandre Julliard
parent 6fc546114b
commit 9cfaa83e92
1 changed files with 1 additions and 0 deletions

View File

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