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:
parent
81bc148bd1
commit
9525f3a1e1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue