From 9cfaa83e92fe88b77557692940aadd171b13aee4 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 20 Sep 2016 11:41:41 +0200 Subject: [PATCH] wined3d: Wait for the texture to become idle before modifying it in wined3d_texture_update_desc(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/texture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c index 1c44a5d0c49..c82016e5551 100644 --- a/dlls/wined3d/texture.c +++ b/dlls/wined3d/texture.c @@ -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;