d3d8/tests: Add test for MaxVertexW device capability.

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2019-02-11 14:04:55 +03:00 committed by Alexandre Julliard
parent 2416578e32
commit e70c4846ff
1 changed files with 2 additions and 0 deletions

View File

@ -8758,6 +8758,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 = IDirect3DDevice8_Release(device);
ok(!refcount, "Device has %u references left.\n", refcount);