Commit 1eb52667 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

ddraw/tests: Avoid endless loop, when T&L is not supported.

parent 01cba076
......@@ -358,6 +358,12 @@ static void LightTest(void)
rc = IDirect3DDevice7_GetCaps(lpD3DDevice, &caps);
ok(rc == D3D_OK, "IDirect3DDevice7_GetCaps failed with %x\n", rc);
if ( caps.dwMaxActiveLights == (DWORD) -1) {
/* Some cards without T&L Support return -1 (Examples: Vodoo banshee, RivaTNT / NV4) */
skip("T&L not supported\n");
return;
}
for(i = 1; i <= caps.dwMaxActiveLights; i++) {
rc = IDirect3DDevice7_LightEnable(lpD3DDevice, i, TRUE);
ok(rc == D3D_OK, "Enabling light %u failed with %x\n", i, rc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment