wined3d: Acquire references to depth/stencil views 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
e6b61128e5
commit
e7810388e2
|
@ -3584,6 +3584,16 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_SET_DEPTH_STENCIL_VIEW:
|
||||
{
|
||||
struct wined3d_cs_set_depth_stencil_view *op;
|
||||
|
||||
op = (struct wined3d_cs_set_depth_stencil_view *)packet->data;
|
||||
if (op->view)
|
||||
wined3d_rendertarget_view_decref(op->view);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -3686,6 +3696,16 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
|
|||
break;
|
||||
}
|
||||
|
||||
case WINED3D_CS_OP_SET_DEPTH_STENCIL_VIEW:
|
||||
{
|
||||
struct wined3d_cs_set_depth_stencil_view *op;
|
||||
|
||||
op = (struct wined3d_cs_set_depth_stencil_view *)packet->data;
|
||||
if (op->view)
|
||||
wined3d_rendertarget_view_incref(op->view);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue