Commit af54f9b9 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Synchronise WINED3D_CS_OP_UNLOAD_RESOURCE resource access.

parent 565cd2b8
...@@ -1256,6 +1256,7 @@ static void wined3d_cs_exec_unload_resource(struct wined3d_cs *cs, const void *d ...@@ -1256,6 +1256,7 @@ static void wined3d_cs_exec_unload_resource(struct wined3d_cs *cs, const void *d
struct wined3d_resource *resource = op->resource; struct wined3d_resource *resource = op->resource;
resource->resource_ops->resource_unload(resource); resource->resource_ops->resource_unload(resource);
wined3d_resource_release(resource);
} }
void wined3d_cs_emit_unload_resource(struct wined3d_cs *cs, struct wined3d_resource *resource) void wined3d_cs_emit_unload_resource(struct wined3d_cs *cs, struct wined3d_resource *resource)
...@@ -1266,6 +1267,8 @@ void wined3d_cs_emit_unload_resource(struct wined3d_cs *cs, struct wined3d_resou ...@@ -1266,6 +1267,8 @@ void wined3d_cs_emit_unload_resource(struct wined3d_cs *cs, struct wined3d_resou
op->opcode = WINED3D_CS_OP_UNLOAD_RESOURCE; op->opcode = WINED3D_CS_OP_UNLOAD_RESOURCE;
op->resource = resource; op->resource = resource;
wined3d_resource_acquire(resource);
cs->ops->submit(cs); cs->ops->submit(cs);
} }
......
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