Commit 06a5337f authored by Jan Sikorski's avatar Jan Sikorski Committed by Alexandre Julliard

wined3d: Acquire references to updated resources for command lists by inspecting CS packets.

parent 7ea8192b
......@@ -3684,6 +3684,15 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
break;
}
case WINED3D_CS_OP_UPDATE_SUB_RESOURCE:
{
struct wined3d_cs_update_sub_resource *op;
op = (struct wined3d_cs_update_sub_resource *)packet->data;
wined3d_resource_decref(op->resource);
break;
}
default:
break;
}
......@@ -3886,6 +3895,15 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
break;
}
case WINED3D_CS_OP_UPDATE_SUB_RESOURCE:
{
struct wined3d_cs_update_sub_resource *op;
op = (struct wined3d_cs_update_sub_resource *)packet->data;
wined3d_resource_incref(op->resource);
break;
}
default:
break;
}
......
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