From 53bf72e266532f2f0533a0dfd7e90a25d7b6d901 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Thu, 18 May 2017 19:23:20 +0200 Subject: [PATCH] d3dx9: Loop through input parameters in is_const_tab_input_dirty(). Signed-off-by: Paul Gofman Signed-off-by: Matteo Bruni Signed-off-by: Alexandre Julliard --- dlls/d3dx9_36/preshader.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/d3dx9_36/preshader.c b/dlls/d3dx9_36/preshader.c index 49eeb22a194..8d1d1b47d1d 100644 --- a/dlls/d3dx9_36/preshader.c +++ b/dlls/d3dx9_36/preshader.c @@ -1323,9 +1323,10 @@ static BOOL is_const_tab_input_dirty(struct d3dx_const_tab *ctab, ULONG64 update if (update_version == ULONG64_MAX) 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 FALSE;