=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: d3d9/tests: Read the caps from the device.
Alexandre Julliard
julliard at winehq.org
Thu Sep 19 17:21:01 CDT 2013
Module: wine
Branch: master
Commit: 708024f78649b087b8c97cae38bdf9a42f60129b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=708024f78649b087b8c97cae38bdf9a42f60129b
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Thu Sep 19 11:02:53 2013 +0200
d3d9/tests: Read the caps from the device.
---
dlls/d3d9/tests/device.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
index f71f8be..02b4174 100644
--- a/dlls/d3d9/tests/device.c
+++ b/dlls/d3d9/tests/device.c
@@ -7018,9 +7018,6 @@ static void test_volume_blocks(void)
skip("Failed to create IDirect3D9 object, skipping tests.\n");
return;
}
- hr = IDirect3D9_GetDeviceCaps(d3d9, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, &caps);
- ok(SUCCEEDED(hr), "Failed to get caps, hr %#x.\n", hr);
- pow2 = !!(caps.TextureCaps & D3DPTEXTURECAPS_VOLUMEMAP_POW2);
window = CreateWindowA("static", "d3d9_test", WS_OVERLAPPEDWINDOW,
0, 0, 640, 480, 0, 0, 0, 0);
@@ -7031,6 +7028,9 @@ static void test_volume_blocks(void)
DestroyWindow(window);
return;
}
+ hr = IDirect3DDevice9_GetDeviceCaps(device, &caps);
+ ok(SUCCEEDED(hr), "Failed to get caps, hr %#x.\n", hr);
+ pow2 = !!(caps.TextureCaps & D3DPTEXTURECAPS_VOLUMEMAP_POW2);
for (i = 0; i < sizeof(formats) / sizeof(*formats); i++)
{
More information about the wine-cvs
mailing list