Paul Gofman : d3d9/tests: Add test for MaxVertexW device capability.
Module: wine Branch: master Commit: 2416578e32d0181f548582cce322874ee17d358c URL: https://source.winehq.org/git/wine.git/?a=commit;h=2416578e32d0181f548582cce... Author: Paul Gofman <gofmanp(a)gmail.com> Date: Mon Feb 11 14:04:54 2019 +0300 d3d9/tests: Add test for MaxVertexW device capability. Signed-off-by: Paul Gofman <gofmanp(a)gmail.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/d3d9/tests/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c index ad1d289..2217569 100644 --- a/dlls/d3d9/tests/device.c +++ b/dlls/d3d9/tests/device.c @@ -12643,6 +12643,8 @@ static void test_device_caps(void) /* AMD gives 6, Nvidia returns 8. */ ok(caps.MaxUserClipPlanes <= 8, "MaxUserClipPlanes field has unexpected value %u.\n", caps.MaxUserClipPlanes); + ok(caps.MaxVertexW == 0.0f || caps.MaxVertexW >= 1e10f, + "MaxVertexW field has unexpected value %.8e.\n", caps.MaxVertexW); refcount = IDirect3DDevice9_Release(device); ok(!refcount, "Device has %u references left.\n", refcount);
participants (1)
-
Alexandre Julliard