From e0d5c35054a55721b186f12be9b5e989f14a7a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rico=20Sch=C3=BCller?= Date: Mon, 9 Jul 2012 22:12:30 +0200 Subject: [PATCH] d3dx9/tests: Fix array increment in SetMatrix*PointerArray() test. --- dlls/d3dx9_36/tests/effect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/d3dx9_36/tests/effect.c b/dlls/d3dx9_36/tests/effect.c index 712cf8c983f..d416213b154 100644 --- a/dlls/d3dx9_36/tests/effect.c +++ b/dlls/d3dx9_36/tests/effect.c @@ -2352,7 +2352,7 @@ static void test_effect_parameter_value(IDirect3DDevice9 *device) memcpy(expected_value, &blob[res_value_offset], res_desc->Bytes); for (l = 0; l < element; ++l) { - matrix_pointer_array[l] = (D3DXMATRIX *)&input_value[l * sizeof(**matrix_pointer_array) / sizeof(*matrix_pointer_array)]; + matrix_pointer_array[l] = (D3DXMATRIX *)&input_value[l * sizeof(**matrix_pointer_array) / sizeof(FLOAT)]; } hr = effect->lpVtbl->SetMatrixPointerArray(effect, parameter, matrix_pointer_array, element); if (res_desc->Class == D3DXPC_MATRIX_ROWS && res_desc->Elements >= element) @@ -2462,7 +2462,7 @@ static void test_effect_parameter_value(IDirect3DDevice9 *device) memcpy(expected_value, &blob[res_value_offset], res_desc->Bytes); for (l = 0; l < element; ++l) { - matrix_pointer_array[l] = (D3DXMATRIX *)&input_value[l * sizeof(**matrix_pointer_array) / sizeof(*matrix_pointer_array)]; + matrix_pointer_array[l] = (D3DXMATRIX *)&input_value[l * sizeof(**matrix_pointer_array) / sizeof(FLOAT)]; } hr = effect->lpVtbl->SetMatrixTransposePointerArray(effect, parameter, matrix_pointer_array, element); if (res_desc->Class == D3DXPC_MATRIX_ROWS && res_desc->Elements >= element)