d3dx9: Add test for D3DXVec2TransformCoord arguments aliasing.

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2016-04-14 15:10:15 +03:00 committed by Alexandre Julliard
parent bb9a2e6714
commit 61b09f3fc7
1 changed files with 5 additions and 2 deletions

View File

@ -1196,6 +1196,9 @@ static void D3DXVector2Test(void)
expectedvec.x = 0.6f; expectedvec.y = 11.0f/15.0f;
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;