=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: ddraw/tests: Avoid touching unsupported clip planes.
Alexandre Julliard
julliard at winehq.org
Thu Jan 11 15:44:32 CST 2018
Module: wine
Branch: master
Commit: 9525f3a1e1f0f8fa4d9f728d542ab9aad8cbab06
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9525f3a1e1f0f8fa4d9f728d542ab9aad8cbab06
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Thu Jan 11 15:33:30 2018 +0100
ddraw/tests: Avoid touching unsupported clip planes.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ddraw/tests/ddraw7.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ddraw/tests/ddraw7.c b/dlls/ddraw/tests/ddraw7.c
index 8eecde0..5434738 100644
--- a/dlls/ddraw/tests/ddraw7.c
+++ b/dlls/ddraw/tests/ddraw7.c
@@ -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);
More information about the wine-cvs
mailing list