Commit 3f3caa33 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Wait for the resource to become idle in wined3d_cs_map().

parent 1ecc334d
......@@ -2303,6 +2303,8 @@ static HRESULT wined3d_cs_map(struct wined3d_device_context *context, struct win
* increasing the map count would be visible to applications. */
wined3d_not_from_cs(cs);
wined3d_resource_wait_idle(resource);
op = wined3d_device_context_require_space(context, sizeof(*op), WINED3D_CS_QUEUE_MAP);
op->opcode = WINED3D_CS_OP_MAP;
op->resource = resource;
......
......@@ -5373,7 +5373,6 @@ HRESULT CDECL wined3d_device_context_map(struct wined3d_device_context *context,
}
flags = sanitise_map_flags(resource, flags);
wined3d_resource_wait_idle(resource);
return context->ops->map(context, resource, sub_resource_idx, map_desc, box, flags);
}
......
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