d3dx9: Loop through input parameters in is_const_tab_input_dirty().

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-05-18 19:23:20 +02:00 committed by Alexandre Julliard
parent 5e87656ec3
commit 53bf72e266
1 changed files with 3 additions and 2 deletions

View File

@ -1323,9 +1323,10 @@ static BOOL is_const_tab_input_dirty(struct d3dx_const_tab *ctab, ULONG64 update
if (update_version == ULONG64_MAX) if (update_version == ULONG64_MAX)
update_version = ctab->update_version; update_version = ctab->update_version;
for (i = 0; i < ctab->const_set_count; ++i) for (i = 0; i < ctab->input_count; ++i)
{ {
if (is_param_dirty(ctab->const_set[i].param, update_version)) if (ctab->inputs_param[i]
&& is_param_dirty(ctab->inputs_param[i], update_version))
return TRUE; return TRUE;
} }
return FALSE; return FALSE;