Paul Gofman : d3dx9: Add test for D3DXVec2TransformCoord arguments aliasing.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Apr 18 10:37:01 CDT 2016
Module: wine
Branch: master
Commit: 61b09f3fc78d291a5d37f7006bc28f8674992458
URL: http://source.winehq.org/git/wine.git/?a=commit;h=61b09f3fc78d291a5d37f7006bc28f8674992458
Author: Paul Gofman <gofmanp at gmail.com>
Date: Thu Apr 14 15:10:15 2016 +0300
d3dx9: Add test for D3DXVec2TransformCoord arguments aliasing.
Signed-off-by: Paul Gofman <gofmanp at gmail.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3dx9_36/tests/math.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c
index 46f90dd..a1b622b 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -1194,8 +1194,11 @@ static void D3DXVector2Test(void)
/*_______________D3DXVec2TransformCoord_______________________*/
expectedvec.x = 0.6f; expectedvec.y = 11.0f/15.0f;
- D3DXVec2TransformCoord(&gotvec,&u,&mat);
- expect_vec(expectedvec,gotvec);
+ D3DXVec2TransformCoord(&gotvec, &u, &mat);
+ expect_vec(expectedvec, gotvec);
+ gotvec.x = u.x; gotvec.y = u.y;
+ D3DXVec2TransformCoord(&gotvec, (D3DXVECTOR2 *)&gotvec, &mat);
+ expect_vec(expectedvec, gotvec);
/*_______________D3DXVec2TransformNormal______________________*/
expectedvec.x = 23.0f; expectedvec.y = 30.0f;
More information about the wine-cvs
mailing list