James Hawkins : ddraw: Fix a failing test for broken drivers.
Module: wine Branch: master Commit: 8830dbcca8b021c5b3f6d94dfedc87947e72f2e5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8830dbcca8b021c5b3f6d94dfe... Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Tue Jul 1 23:18:05 2008 -0500 ddraw: Fix a failing test for broken drivers. --- dlls/ddraw/tests/d3d.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c index f4e4970..bf933bc 100644 --- a/dlls/ddraw/tests/d3d.c +++ b/dlls/ddraw/tests/d3d.c @@ -327,7 +327,8 @@ static void LightTest(void) light.dvAttenuation0 = zero / zero; /* NaN */ 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 */ light.dltType = D3DLIGHT_DIRECTIONAL;
participants (1)
-
Alexandre Julliard