David Adam : d3dx8: Add a few tests for MatrixStack.

Alexandre Julliard julliard at winehq.org
Fri Nov 28 07:16:57 CST 2008


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

Author: David Adam <david.adam.cnrs at gmail.com>
Date:   Sun Nov 16 09:02:27 2008 +0100

d3dx8: Add a few tests for MatrixStack.

---

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

diff --git a/dlls/d3dx8/tests/math.c b/dlls/d3dx8/tests/math.c
index 3dc0899..b1bfd74 100644
--- a/dlls/d3dx8/tests/math.c
+++ b/dlls/d3dx8/tests/math.c
@@ -1479,6 +1479,18 @@ static void test_matrix_stack(void)
     ok(SUCCEEDED(hr), "Pop failed, hr %#x\n", hr);
     ok(D3DXMatrixIsIdentity(ID3DXMatrixStack_GetTop(stack)), "The top should be an identity matrix\n");
 
+    hr = ID3DXMatrixStack_MultMatrix(stack, NULL);
+    ok(hr == D3DERR_INVALIDCALL, "Expected D3DERR_INVALIDCALL, got %#x\n", hr);
+
+    hr = ID3DXMatrixStack_MultMatrixLocal(stack, NULL);
+    ok(hr == D3DERR_INVALIDCALL, "Expected D3DERR_INVALIDCALL, got %#x\n", hr);
+
+    hr = ID3DXMatrixStack_RotateAxis(stack, NULL, 2.0f);
+    ok(hr == D3DERR_INVALIDCALL, "Expected D3DERR_INVALIDCALL, got %#x\n", hr);
+
+    hr = ID3DXMatrixStack_RotateAxisLocal(stack, NULL, 2.0f);
+    ok(hr == D3DERR_INVALIDCALL, "Expected D3DERR_INVALIDCALL, got %#x\n", hr);
+
     refcount = ID3DXMatrixStack_Release(stack);
     ok(!refcount, "Matrix stack has %u references left.\n", refcount);
 }




More information about the wine-cvs mailing list