=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: d3d8/tests: Use a slop for test_shademode.
Alexandre Julliard
julliard at wine.codeweavers.com
Sun Jan 3 14:24:15 CST 2016
Module: wine
Branch: master
Commit: 43903e12cbf147db1a56ceb2af3f46f323736bee
URL: http://source.winehq.org/git/wine.git/?a=commit;h=43903e12cbf147db1a56ceb2af3f46f323736bee
Author: Stefan Dösinger <stefandoesinger at gmx.at>
Date: Fri Jan 1 18:24:50 2016 +0000
d3d8/tests: Use a slop for test_shademode.
Signed-off-by: Stefan Dösinger <stefandoesinger at gmx.at>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d8/tests/visual.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d8/tests/visual.c b/dlls/d3d8/tests/visual.c
index 0663e18..322c0dd 100644
--- a/dlls/d3d8/tests/visual.c
+++ b/dlls/d3d8/tests/visual.c
@@ -8478,9 +8478,9 @@ static void test_shademode(void)
* functionality being available. */
/* PHONG should be the same as GOURAUD, since no hardware implements
* this. */
- ok(color0 == tests[i].color0, "Test %u shading has color0 %08x, expected %08x.\n",
+ ok(color_match(color0, tests[i].color0, 1), "Test %u shading has color0 %08x, expected %08x.\n",
i, color0, tests[i].color0);
- ok(color1 == tests[i].color1, "Test %u shading has color1 %08x, expected %08x.\n",
+ ok(color_match(color1, tests[i].color1, 1), "Test %u shading has color1 %08x, expected %08x.\n",
i, color1, tests[i].color1);
IDirect3DDevice8_SetVertexShader(device, 0);
More information about the wine-cvs
mailing list