Commit 5f417adf authored by Jan Sikorski's avatar Jan Sikorski Committed by Alexandre Julliard

wined3d: Acquire references to indirect draw buffers for command lists by inspecting CS packets.

parent 3fb9a8ea
...@@ -3639,6 +3639,15 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac ...@@ -3639,6 +3639,15 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
break; break;
} }
case WINED3D_CS_OP_DRAW:
{
struct wined3d_cs_draw *op = (struct wined3d_cs_draw *)packet->data;
if (op->parameters.indirect)
wined3d_buffer_decref(op->parameters.u.indirect.buffer);
break;
}
default: default:
break; break;
} }
...@@ -3796,6 +3805,15 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet) ...@@ -3796,6 +3805,15 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
break; break;
} }
case WINED3D_CS_OP_DRAW:
{
struct wined3d_cs_draw *op = (struct wined3d_cs_draw *)packet->data;
if (op->parameters.indirect)
wined3d_buffer_incref(op->parameters.u.indirect.buffer);
break;
}
default: default:
break; 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