David Adam : d3dx8: Test the function D3DXVec3Cross really.

Alexandre Julliard julliard at winehq.org
Mon Oct 29 08:34:59 CDT 2007


Module: wine
Branch: master
Commit: 145264efa691b0f065c3859570772e22f6624e69
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=145264efa691b0f065c3859570772e22f6624e69

Author: David Adam <David.Adam at math.cnrs.fr>
Date:   Fri Oct 26 21:46:32 2007 +0200

d3dx8: Test the function D3DXVec3Cross really.

---

 dlls/d3dx8/tests/math.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/d3dx8/tests/math.c b/dlls/d3dx8/tests/math.c
index 258222d..f410b64 100644
--- a/dlls/d3dx8/tests/math.c
+++ b/dlls/d3dx8/tests/math.c
@@ -451,8 +451,9 @@ static void D3X8Vector3Test(void)
     expect_vec3(expectedvec,gotvec);
 
 /*_______________D3DXVec3Cross________________________*/
-    expectedvec.x = -18.0f; expectedvec.y = 40.0f; expectedvec.z = -30.0f;
+    expectedvec.x = -18.0f; expectedvec.y = 40.0f; expectedvec.z = -39.0f;
     D3DXVec3Cross(&gotvec,&u,&v);
+    expect_vec3(expectedvec,gotvec);
     /* Tests the case NULL */
     funcpointer = D3DXVec3Cross(&gotvec,NULL,&v);
     ok(funcpointer == NULL, "Expected: %p, Got: %p\n", NULL, funcpointer);




More information about the wine-cvs mailing list