Zebediah Figura : d3d11/tests: Relax some color comparisons.

Alexandre Julliard julliard at winehq.org
Mon Mar 23 15:47:11 CDT 2020


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sun Mar 22 18:27:44 2020 -0500

d3d11/tests: Relax some color comparisons.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d11/tests/d3d11.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index 729f57f443..dcde0d1c10 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -29819,7 +29819,7 @@ static void test_color_mask(void)
     {
         get_texture_readback(rts[i], 0, &rb);
         color = get_readback_color(&rb, 320, 240, 0);
-        ok(color == expected_colors[i], "%u: Got unexpected color 0x%08x.\n", i, color);
+        ok(compare_color(color, expected_colors[i], 1), "%u: Got unexpected color 0x%08x.\n", i, color);
         release_resource_readback(&rb);
     }
 
@@ -29837,7 +29837,7 @@ static void test_color_mask(void)
     {
         get_texture_readback(rts[i], 0, &rb);
         color = get_readback_color(&rb, 320, 240, 0);
-        ok(color == expected_colors[0], "%u: Got unexpected color 0x%08x.\n", i, color);
+        ok(compare_color(color, expected_colors[0], 1), "%u: Got unexpected color 0x%08x.\n", i, color);
         release_resource_readback(&rb);
 
         ID3D11Texture2D_Release(rts[i]);




More information about the wine-cvs mailing list