From 363d180a54f0c785875d17c8816b2edbc5476a09 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Mon, 8 Nov 2010 19:56:28 +0100 Subject: [PATCH] d3dx9: Skip D3DXCheckCubeTextureRequirement test if not supported. --- dlls/d3dx9_36/tests/texture.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/d3dx9_36/tests/texture.c b/dlls/d3dx9_36/tests/texture.c index 2d020fdb1f3..73f13d7fc3a 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);