Matteo Bruni : d3dx9: Skip D3DXCheckCubeTextureRequirement test if not supported.
Alexandre Julliard
julliard at winehq.org
Tue Nov 9 13:13:23 CST 2010
Module: wine
Branch: master
Commit: 363d180a54f0c785875d17c8816b2edbc5476a09
URL: http://source.winehq.org/git/wine.git/?a=commit;h=363d180a54f0c785875d17c8816b2edbc5476a09
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Mon Nov 8 19:56:28 2010 +0100
d3dx9: Skip D3DXCheckCubeTextureRequirement test if not supported.
---
dlls/d3dx9_36/tests/texture.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/d3dx9_36/tests/texture.c b/dlls/d3dx9_36/tests/texture.c
index 2d020fd..73f13d7 100644
--- a/dlls/d3dx9_36/tests/texture.c
+++ b/dlls/d3dx9_36/tests/texture.c
@@ -200,6 +200,12 @@ static void test_D3DXCheckCubeTextureRequirements(IDirect3DDevice9 *device)
IDirect3DDevice9_GetDeviceCaps(device, &caps);
+ if (!(caps.TextureCaps & D3DPTEXTURECAPS_CUBEMAP))
+ {
+ skip("No cube textures support\n");
+ return;
+ }
+
/* general tests */
hr = D3DXCheckCubeTextureRequirements(device, NULL, NULL, 0, NULL, D3DPOOL_DEFAULT);
ok(hr == D3D_OK, "D3DXCheckCubeTextureRequirements returned %#x, expected %#x\n", hr, D3D_OK);
More information about the wine-cvs
mailing list