ddraw: Fix a failing test for broken drivers.

This commit is contained in:
James Hawkins 2008-07-01 23:18:05 -05:00 committed by Alexandre Julliard
parent 448cfaeb8f
commit 8830dbcca8
1 changed files with 2 additions and 1 deletions

View File

@ -327,7 +327,8 @@ static void LightTest(void)
light.dvAttenuation0 = zero / zero; /* NaN */ light.dvAttenuation0 = zero / zero; /* NaN */
rc = IDirect3DDevice7_SetLight(lpD3DDevice, 103, &light); rc = IDirect3DDevice7_SetLight(lpD3DDevice, 103, &light);
ok(rc==D3D_OK, "SetLight returned: %x\n", rc); ok(rc==D3D_OK ||
broken(rc==DDERR_INVALIDPARAMS), "SetLight returned: %x\n", rc);
/* Directional light ignores attenuation */ /* Directional light ignores attenuation */
light.dltType = D3DLIGHT_DIRECTIONAL; light.dltType = D3DLIGHT_DIRECTIONAL;