[PATCH 3/7] d3dx9: Add framework for a more sophisticated D3DXCreateSphere test.
Misha Koshelev
misha680 at gmail.com
Wed Jun 23 22:18:41 CDT 2010
---
dlls/d3dx9_36/tests/shape.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/d3dx9_36/tests/shape.c b/dlls/d3dx9_36/tests/shape.c
index 136853d..77c66c1 100644
--- a/dlls/d3dx9_36/tests/shape.c
+++ b/dlls/d3dx9_36/tests/shape.c
@@ -22,6 +22,7 @@
static void test_create_sphere(IDirect3DDevice9* device)
{
HRESULT hr;
+ LPD3DXMESH sphere = NULL;
hr = D3DXCreateSphere(NULL, 0.0, 0, 0, NULL, NULL);
todo_wine ok( hr == D3DERR_INVALIDCALL, "Got result %x, expected %x (D3D_INVALIDCALL)\n",hr,D3DERR_INVALIDCALL);
@@ -34,6 +35,15 @@ static void test_create_sphere(IDirect3DDevice9* device)
hr = D3DXCreateSphere(NULL, 0.0, 0, 1, NULL, NULL);
todo_wine ok( hr == D3DERR_INVALIDCALL, "Got result %x, expected %x (D3D_INVALIDCALL)\n",hr,D3DERR_INVALIDCALL);
+
+ hr = D3DXCreateSphere(device, 1.0, 1, 1, &sphere, NULL);
+ todo_wine ok( hr == D3DERR_INVALIDCALL, "Got result %x, expected %x (D3D_INVALIDCALL)\n",hr,D3DERR_INVALIDCALL);
+
+ hr = D3DXCreateSphere(device, 1.0, 2, 2, &sphere, NULL);
+ todo_wine ok( hr == D3D_OK, "Got result %x, expected 0 (D3D_OK)\n",hr);
+
+ if (sphere)
+ ID3DXMesh_Release(sphere);
}
START_TEST(shape)
--
1.7.1
More information about the wine-patches
mailing list