d3d8: Skip volume test if volume textures are not supported.

This commit is contained in:
Stefan Dösinger 2007-07-24 15:27:58 +02:00 committed by Alexandre Julliard
parent 5c905b9e8c
commit 5016f48daa
1 changed files with 7 additions and 0 deletions

View File

@ -125,6 +125,7 @@ START_TEST(volume)
{
HMODULE d3d8_handle;
IDirect3DDevice8 *device_ptr;
D3DCAPS8 caps;
d3d8_handle = LoadLibraryA("d3d8.dll");
if (!d3d8_handle)
@ -136,5 +137,11 @@ START_TEST(volume)
device_ptr = init_d3d8(d3d8_handle);
if (!device_ptr) return;
IDirect3DDevice8_GetDeviceCaps(device_ptr, &caps);
if(!(caps.TextureCaps & D3DPTEXTURECAPS_VOLUMEMAP)) {
skip("Volume textures not supported\n");
return;
}
test_volume_get_container(device_ptr);
}