ddraw/tests: Avoid touching unsupported clip planes.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-01-11 15:33:30 +01:00 committed by Alexandre Julliard
parent 81bc148bd1
commit 9525f3a1e1
1 changed files with 3 additions and 3 deletions

View File

@ -13353,7 +13353,7 @@ static void test_clip_planes_limits(void)
trace("Max user clip planes: %u.\n", caps.wMaxUserClipPlanes);
for (i = 0; i < D3DMAXUSERCLIPPLANES; ++i)
for (i = 0; i < caps.wMaxUserClipPlanes; ++i)
{
memset(plane, 0xff, sizeof(plane));
hr = IDirect3DDevice7_GetClipPlane(device, i, plane);
@ -13366,13 +13366,13 @@ static void test_clip_planes_limits(void)
plane[0] = 2.0f;
plane[1] = 8.0f;
plane[2] = 5.0f;
for (i = 0; i < D3DMAXUSERCLIPPLANES; ++i)
for (i = 0; i < caps.wMaxUserClipPlanes; ++i)
{
plane[3] = i;
hr = IDirect3DDevice7_SetClipPlane(device, i, plane);
ok(hr == D3D_OK, "Failed to set clip plane %u, hr %#x.\n", i, hr);
}
for (i = 0; i < D3DMAXUSERCLIPPLANES; ++i)
for (i = 0; i < caps.wMaxUserClipPlanes; ++i)
{
memset(plane, 0xff, sizeof(plane));
hr = IDirect3DDevice7_GetClipPlane(device, i, plane);