wined3d: Make the "icb" field in struct wined3d_shader_instruction const.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fabd40013c
commit
48d755f61d
|
@ -917,9 +917,9 @@ static void shader_sm4_read_instruction(void *data, const DWORD **ptr, struct wi
|
|||
return;
|
||||
}
|
||||
|
||||
priv->icb.element_count = len;
|
||||
memcpy(priv->icb.data, p, sizeof(*p) * icb_size);
|
||||
ins->declaration.icb = &priv->icb;
|
||||
ins->declaration.icb->element_count = len;
|
||||
memcpy(ins->declaration.icb->data, p, sizeof(*p) * icb_size);
|
||||
}
|
||||
else if (opcode == WINED3D_SM4_OP_DCL_RESOURCE)
|
||||
{
|
||||
|
|
|
@ -819,7 +819,7 @@ struct wined3d_shader_instruction
|
|||
struct wined3d_shader_dst_param dst;
|
||||
struct wined3d_shader_src_param src;
|
||||
UINT count;
|
||||
struct wined3d_shader_immediate_constant_buffer *icb;
|
||||
const struct wined3d_shader_immediate_constant_buffer *icb;
|
||||
} declaration;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue