Commit 2991180e authored by Jan Sikorski's avatar Jan Sikorski Committed by Alexandre Julliard

wined3d: Acquire references to render-target views for command lists by inspecting CS packets.

parent c976f8fb
...@@ -3545,6 +3545,19 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac ...@@ -3545,6 +3545,19 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
break; break;
} }
case WINED3D_CS_OP_SET_RENDERTARGET_VIEWS:
{
struct wined3d_cs_set_rendertarget_views *op;
op = (struct wined3d_cs_set_rendertarget_views *)packet->data;
for (i = 0; i < op->count; ++i)
{
if (op->views[i])
wined3d_rendertarget_view_decref(op->views[i]);
}
break;
}
default: default:
break; break;
} }
...@@ -3608,6 +3621,19 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet) ...@@ -3608,6 +3621,19 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
break; break;
} }
case WINED3D_CS_OP_SET_RENDERTARGET_VIEWS:
{
struct wined3d_cs_set_rendertarget_views *op;
op = (struct wined3d_cs_set_rendertarget_views *)packet->data;
for (i = 0; i < op->count; ++i)
{
if (op->views[i])
wined3d_rendertarget_view_incref(op->views[i]);
}
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