Commit 5016f48d authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

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

parent 5c905b9e
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment