Commit 86413534 authored by Jan Sikorski's avatar Jan Sikorski Committed by Alexandre Julliard

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

parent 5f417adf
......@@ -3648,6 +3648,16 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
break;
}
case WINED3D_CS_OP_SET_INDEX_BUFFER:
{
struct wined3d_cs_set_index_buffer *op;
op = (struct wined3d_cs_set_index_buffer *)packet->data;
if (op->buffer)
wined3d_buffer_decref(op->buffer);
break;
}
default:
break;
}
......@@ -3814,6 +3824,16 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
break;
}
case WINED3D_CS_OP_SET_INDEX_BUFFER:
{
struct wined3d_cs_set_index_buffer *op;
op = (struct wined3d_cs_set_index_buffer *)packet->data;
if (op->buffer)
wined3d_buffer_incref(op->buffer);
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