d3dx9: Use pass update version for detecting updated FXLC parameter.

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-22 13:24:12 +02:00 committed by Alexandre Julliard
parent f03de9ac4c
commit 174ea70bf3
1 changed files with 4 additions and 1 deletions

View File

@ -1092,7 +1092,10 @@ static HRESULT d3dx9_get_param_value_ptr(struct d3dx_pass *pass, struct d3dx_sta
{
*out_param = param;
*param_value = param->data;
if (update_all || is_param_eval_input_dirty(param->param_eval, ULONG64_MAX))
/* We check with the update_version of the pass because the
* same preshader might be used by both the vertex and the
* pixel shader (that can happen e.g. for sampler states). */
if (update_all || is_param_eval_input_dirty(param->param_eval, pass->update_version))
{
*param_dirty = TRUE;
return d3dx_evaluate_parameter(param->param_eval, param, *param_value);