Paul Gofman : d3dx9: Add test for D3DXPlaneFromPointNormal arguments aliasing.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Apr 18 10:37:01 CDT 2016
Module: wine
Branch: master
Commit: 97bbf747c0a2400c49ef053d79b74733aab1e66d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=97bbf747c0a2400c49ef053d79b74733aab1e66d
Author: Paul Gofman <gofmanp at gmail.com>
Date: Thu Apr 14 15:10:11 2016 +0300
d3dx9: Add test for D3DXPlaneFromPointNormal 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 | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c
index 0fe6796..4ac0a31 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -609,7 +609,14 @@ static void D3DXPlaneTest(void)
vec1.x = 11.0f; vec1.y = 13.0f; vec1.z = 15.0f;
vec2.x = 17.0f; vec2.y = 31.0f; vec2.z = 24.0f;
expectedplane.a = 17.0f; expectedplane.b = 31.0f; expectedplane.c = 24.0f; expectedplane.d = -950.0f;
- D3DXPlaneFromPointNormal(&gotplane,&vec1,&vec2);
+ D3DXPlaneFromPointNormal(&gotplane, &vec1, &vec2);
+ expect_plane(expectedplane, gotplane);
+ gotplane.a = vec2.x; gotplane.b = vec2.y; gotplane.c = vec2.z;
+ D3DXPlaneFromPointNormal(&gotplane, &vec1, (D3DXVECTOR3 *)&gotplane);
+ expect_plane(expectedplane, gotplane);
+ gotplane.a = vec1.x; gotplane.b = vec1.y; gotplane.c = vec1.z;
+ expectedplane.d = -1826.0f;
+ D3DXPlaneFromPointNormal(&gotplane, (D3DXVECTOR3 *)&gotplane, &vec2);
expect_plane(expectedplane, gotplane);
/*_______________D3DXPlaneFromPoints_______*/
More information about the wine-cvs
mailing list