wined3d: Acquire references to vertex buffers for command lists by inspecting CS packets.
Signed-off-by: Jan Sikorski <jsikorski@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c36351be1e
commit
6e0e2bef5d
|
@ -3671,6 +3671,19 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WINED3D_CS_OP_SET_STREAM_SOURCES:
|
||||||
|
{
|
||||||
|
struct wined3d_cs_set_stream_sources *op;
|
||||||
|
|
||||||
|
op = (struct wined3d_cs_set_stream_sources *)packet->data;
|
||||||
|
for (i = 0; i < op->count; ++i)
|
||||||
|
{
|
||||||
|
if (op->streams[i].buffer)
|
||||||
|
wined3d_buffer_decref(op->streams[i].buffer);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -3860,6 +3873,19 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WINED3D_CS_OP_SET_STREAM_SOURCES:
|
||||||
|
{
|
||||||
|
struct wined3d_cs_set_stream_sources *op;
|
||||||
|
|
||||||
|
op = (struct wined3d_cs_set_stream_sources *)packet->data;
|
||||||
|
for (i = 0; i < op->count; ++i)
|
||||||
|
{
|
||||||
|
if (op->streams[i].buffer)
|
||||||
|
wined3d_buffer_incref(op->streams[i].buffer);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue