d3dx9/tests: Fix array increment in SetMatrix*PointerArray() test.

This commit is contained in:
Rico Schüller 2012-07-09 22:12:30 +02:00 committed by Alexandre Julliard
parent 617a2ccee6
commit e0d5c35054
1 changed files with 2 additions and 2 deletions

View File

@ -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)