Commit 51c10cbc authored by Jan Sikorski's avatar Jan Sikorski Committed by Alexandre Julliard

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

parent 06a5337f
......@@ -3693,6 +3693,17 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
break;
}
case WINED3D_CS_OP_BLT_SUB_RESOURCE:
{
struct wined3d_cs_blt_sub_resource *op;
op = (struct wined3d_cs_blt_sub_resource *)packet->data;
if (op->src_resource)
wined3d_resource_decref(op->src_resource);
wined3d_resource_decref(op->dst_resource);
break;
}
default:
break;
}
......@@ -3904,6 +3915,17 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
break;
}
case WINED3D_CS_OP_BLT_SUB_RESOURCE:
{
struct wined3d_cs_blt_sub_resource *op;
op = (struct wined3d_cs_blt_sub_resource *)packet->data;
if (op->src_resource)
wined3d_resource_incref(op->src_resource);
wined3d_resource_incref(op->dst_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