d3d8/tests: Mark a failure of GetLightEnable on Win9x as broken().
authorDetlef Riekenberg <wine.dev@web.de>
Thu, 15 Oct 2009 19:14:18 +0000 (21:14 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 16 Oct 2009 11:36:11 +0000 (13:36 +0200)
dlls/d3d8/tests/device.c

index a869e792be0b904661adae17878aa9472a3581b0..2a6a10ef143e522a2cebe3e8fca2910fe6f62380 100644 (file)
@@ -1248,7 +1248,9 @@ static void test_lights(void)
        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(hr == D3D_OK ||
+       broken(hr == D3DERR_INVALIDCALL), /* Some Win9x and WinME */
+       "GetLightEnable on light %u failed with %08x\n", i + 1, hr);
     ok(enabled, "Light %d is %s\n", i + 1, enabled ? "enabled" : "disabled");
     hr = IDirect3DDevice8_LightEnable(device, i + 1, FALSE);
     ok(hr == D3D_OK, "Disabling the additional returned %08x\n", hr);