Stefan Dösinger : d3d8: Skip volume test if volume textures are not supported.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 30 08:55:36 CDT 2007


Module: wine
Branch: master
Commit: 5016f48daa19b025933dc59b13fdb3cf93f8bb71
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5016f48daa19b025933dc59b13fdb3cf93f8bb71

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Tue Jul 24 15:27:58 2007 +0200

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

---

 dlls/d3d8/tests/volume.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/d3d8/tests/volume.c b/dlls/d3d8/tests/volume.c
index 5d339c3..09767c2 100644
--- a/dlls/d3d8/tests/volume.c
+++ b/dlls/d3d8/tests/volume.c
@@ -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);
 }




More information about the wine-cvs mailing list