d3dx9: Don't call get_parameter_by_name() from get_valid_parameter() if D3DXFX_LARGEADDRESSAWARE flag is set.

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2017-04-28 21:24:13 +03:00 committed by Alexandre Julliard
parent a52a2d1aab
commit 1817f63a51
1 changed files with 1 additions and 1 deletions

View File

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