Commit 1817f63a authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

d3dx9: Don't call get_parameter_by_name() from get_valid_parameter() if…

d3dx9: Don't call get_parameter_by_name() from get_valid_parameter() if D3DXFX_LARGEADDRESSAWARE flag is set. Signed-off-by: 's avatarPaul Gofman <gofmanp@gmail.com> Signed-off-by: 's avatarMatteo Bruni <mbruni@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a52a2d1a
......@@ -503,7 +503,7 @@ static struct d3dx_parameter *get_valid_parameter(struct d3dx9_base_effect *base
sizeof(parameter_magic_string)))
return handle_param;
return get_parameter_by_name(base, NULL, parameter);
return base->flags & D3DXFX_LARGEADDRESSAWARE ? NULL : get_parameter_by_name(base, NULL, parameter);
}
static void free_state(struct d3dx_state *state)
......
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