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:
Henri Verbeet 2016-02-04 21:56:36 +01:00 committed by Alexandre Julliard
parent fabd40013c
commit 48d755f61d
2 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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;
};