From 38abbe3d607f03c3b70e06897bc4c5f7059f2c71 Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Mon, 13 Oct 2008 01:33:13 +0200 Subject: [PATCH] d3d8/tests: Fix test on win9x with broken driver. --- dlls/d3d8/tests/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c index fbbdf1da6b7..439267d6f2d 100644 --- a/dlls/d3d8/tests/device.c +++ b/dlls/d3d8/tests/device.c @@ -1190,7 +1190,8 @@ static void test_lights(void) hr = IDirect3DDevice8_LightEnable(device, i, TRUE); ok(hr == D3D_OK, "Enabling light %u failed with %08x\n", i, hr); hr = IDirect3DDevice8_GetLightEnable(device, i, &enabled); - ok(hr == D3D_OK, "GetLightEnable on light %u failed with %08x\n", i, hr); + ok(hr == D3D_OK || broken(hr == D3DERR_INVALIDCALL), + "GetLightEnable on light %u failed with %08x\n", i, hr); ok(enabled, "Light %d is %s\n", i, enabled ? "enabled" : "disabled"); } -- 2.11.4.GIT