d3dx9: Skip D3DXCheckCubeTextureRequirement test if not supported.
This commit is contained in:
parent
76a976d049
commit
363d180a54
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue