[1/3] d3dx9: Skip D3DXCheckCubeTextureRequirement test if not supported.
Matteo Bruni
matteo.mystral at gmail.com
Tue Nov 9 08:52:20 CST 2010
-------------- next part --------------
From 00161d9a96b047ec9a99636bf2529a5aea8885eb Mon Sep 17 00:00:00 2001
From: Matteo Bruni <mbruni at codeweavers.com>
Date: Mon, 8 Nov 2010 19:56:28 +0100
Subject: 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);
--
1.7.2.2
More information about the wine-patches
mailing list