d3dx9: Use get_version_counter_ptr() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-03-20 17:46:29 +01:00 committed by Alexandre Julliard
parent 074e3232ee
commit 9438d03127
1 changed files with 1 additions and 3 deletions

View File

@ -6077,9 +6077,7 @@ static HRESULT d3dx_parse_effect(struct d3dx_effect *effect, const char *data, U
{
if (FAILED(hr = d3dx_pool_sync_shared_parameter(base->pool, &base->parameters[i])))
goto err_out;
base->parameters[i].version_counter = base->pool
? &base->pool->version_counter
: &base->version_counter;
base->parameters[i].version_counter = get_version_counter_ptr(effect);
set_dirty(&base->parameters[i].param);
}
return D3D_OK;