Stefan Dösinger : d3d9: Check for volume texture support before running the volume test.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Aug 3 08:04:35 CDT 2007
Module: wine
Branch: master
Commit: 17fe57e212599cd9cdeea3a8c650036b4ad7cec0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=17fe57e212599cd9cdeea3a8c650036b4ad7cec0
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Thu Aug 2 20:29:41 2007 +0200
d3d9: Check for volume texture support before running the volume test.
---
dlls/d3d9/tests/volume.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d9/tests/volume.c b/dlls/d3d9/tests/volume.c
index e1ad947..3f31084 100644
--- a/dlls/d3d9/tests/volume.c
+++ b/dlls/d3d9/tests/volume.c
@@ -122,7 +122,9 @@ START_TEST(volume)
{
HMODULE d3d9_handle;
IDirect3DDevice9 *device_ptr;
+ D3DCAPS9 caps;
+ memset(&caps, 0, sizeof(caps));
d3d9_handle = LoadLibraryA("d3d9.dll");
if (!d3d9_handle)
{
@@ -132,6 +134,12 @@ START_TEST(volume)
device_ptr = init_d3d9(d3d9_handle);
if (!device_ptr) return;
+ IDirect3DDevice9_GetDeviceCaps(device_ptr, &caps);
+
+ if(!(caps.TextureCaps & D3DPTEXTURECAPS_VOLUMEMAP)) {
+ skip("No volume texture support\n");
+ return;
+ }
test_volume_get_container(device_ptr);
}
More information about the wine-cvs
mailing list