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

wined3d: Acquire shader references for command lists by inspecting CS packets.

parent 9340ed60
......@@ -3574,6 +3574,15 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
break;
}
case WINED3D_CS_OP_SET_SHADER:
{
struct wined3d_cs_set_shader *op = (struct wined3d_cs_set_shader *)packet->data;
if (op->shader)
wined3d_shader_decref(op->shader);
break;
}
default:
break;
}
......@@ -3598,6 +3607,15 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
break;
}
case WINED3D_CS_OP_SET_SHADER:
{
struct wined3d_cs_set_shader *op = (struct wined3d_cs_set_shader *)packet->data;
if (op->shader)
wined3d_shader_incref(op->shader);
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