Paul Vriens : d3d8/tests: Fix a test failure on some boxes.
Alexandre Julliard
julliard at winehq.org
Wed Feb 25 09:22:50 CST 2009
Module: wine
Branch: master
Commit: a1ca18eaf89df658f2cfaad9553ce37d5cbf2779
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a1ca18eaf89df658f2cfaad9553ce37d5cbf2779
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Wed Feb 25 12:12:50 2009 +0100
d3d8/tests: Fix a test failure on some boxes.
---
dlls/d3d8/tests/device.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index f97bbb3..ab21482 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -1207,7 +1207,9 @@ static void test_lights(void)
/* TODO: Test the rendering results in this situation */
hr = IDirect3DDevice8_LightEnable(device, i + 1, TRUE);
- ok(hr == D3D_OK, "Enabling one light more than supported returned %08x\n", hr);
+ ok(hr == D3D_OK ||
+ broken(hr == D3DERR_INVALIDCALL), /* Some Win9x and WinME */
+ "Enabling one light more than supported returned %08x\n", hr);
hr = IDirect3DDevice8_GetLightEnable(device, i + 1, &enabled);
ok(hr == D3D_OK, "GetLightEnable on light %u failed with %08x\n", i + 1, hr);
ok(enabled, "Light %d is %s\n", i + 1, enabled ? "enabled" : "disabled");
More information about the wine-cvs
mailing list