d3dx9/tests: Relax D3DXQuaternionToAxisAngle test stringency a bit.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2017-11-09 21:36:10 -07:00 committed by Alexandre Julliard
parent fef5871e28
commit f6fdcc848d

View file

@ -1099,7 +1099,7 @@ static void D3DXQuaternionTest(void)
expectedvec.x = 1.0f/22.0f; expectedvec.y = 2.0f/22.0f; expectedvec.z = 4.0f/22.0f;
D3DXQuaternionToAxisAngle(&Nq,&axis,&angle);
expect_vec3(&expectedvec, &axis, 0);
equal = compare_float(angle, 2.197869f, 0);
equal = compare_float(angle, 2.197869f, 1);
ok(equal, "Got unexpected angle %.8e.\n", angle);
/* Test if |w|>1.0f */
expectedvec.x = 1.0f; expectedvec.y = 2.0f; expectedvec.z = 4.0f;