d3d8: Skip volume test if volume textures are not supported.
This commit is contained in:
parent
5c905b9e8c
commit
5016f48daa
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue