Paul Gofman : d3d8/tests: Add test for MaxVertexW device capability.

Alexandre Julliard julliard at winehq.org
Mon Feb 11 16:12:12 CST 2019


Module: wine
Branch: master
Commit: e70c4846ff4f7755f7c00b19947c0b2cc44665d3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e70c4846ff4f7755f7c00b19947c0b2cc44665d3

Author: Paul Gofman <gofmanp at gmail.com>
Date:   Mon Feb 11 14:04:55 2019 +0300

d3d8/tests: Add test for MaxVertexW device capability.

Signed-off-by: Paul Gofman <gofmanp at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d8/tests/device.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index 315640d..39a2359 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -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);




More information about the wine-cvs mailing list