[PATCH 06/10] d3dx9: Add test for number of faces in D3DXCreateBox. (try 2)
Misha Koshelev
misha680 at gmail.com
Sat Jul 17 14:14:06 CDT 2010
---
dlls/d3dx9_36/tests/mesh.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c
index 401e61e..6db432e 100644
--- a/dlls/d3dx9_36/tests/mesh.c
+++ b/dlls/d3dx9_36/tests/mesh.c
@@ -488,7 +488,7 @@ static void D3DXCreateBoxTest(void)
IDirect3DDevice9* device;
D3DPRESENT_PARAMETERS d3dpp;
ID3DXMesh* box = NULL;
- DWORD number_of_vertices;
+ DWORD number_of_vertices, number_of_faces;
IDirect3DVertexBuffer9* vertex_buffer = NULL;
D3DVERTEXBUFFER_DESC vertex_buffer_description;
D3DXVECTOR3* vertex_data = NULL;
@@ -636,6 +636,10 @@ static void D3DXCreateBoxTest(void)
IDirect3DVertexBuffer9_Release(vertex_buffer);
}
+ /* Index buffer */
+ number_of_faces = box->lpVtbl->GetNumFaces(box);
+ todo_wine ok( number_of_faces == 12, "Got result %u, expected 12\n",number_of_faces);
+
box->lpVtbl->Release(box);
}
--
1.7.1
More information about the wine-patches
mailing list