d3d9/tests: Use a slop for test_shademode.
Needed on my Geforce 7300. The old test passed OK, the newly extended test needs a slop. Signed-off-by: Stefan Dösinger <stefandoesinger@gmx.at> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8ac0526013
commit
7cdb66a48b
@ -8474,16 +8474,16 @@ static void test_shademode(void)
|
|||||||
* this. */
|
* this. */
|
||||||
if (tests[i].todo)
|
if (tests[i].todo)
|
||||||
{
|
{
|
||||||
todo_wine ok(color0 == tests[i].color0, "Test %u shading has color0 %08x, expected %08x.\n",
|
todo_wine ok(color_match(color0, tests[i].color0, 1), "Test %u shading has color0 %08x, expected %08x.\n",
|
||||||
i, color0, tests[i].color0);
|
i, color0, tests[i].color0);
|
||||||
todo_wine ok(color1 == tests[i].color1, "Test %u shading has color1 %08x, expected %08x.\n",
|
todo_wine ok(color_match(color1, tests[i].color1, 1), "Test %u shading has color1 %08x, expected %08x.\n",
|
||||||
i, color1, tests[i].color1);
|
i, color1, tests[i].color1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
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);
|
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);
|
i, color1, tests[i].color1);
|
||||||
}
|
}
|
||||||
IDirect3DDevice9_SetVertexShader(device, NULL);
|
IDirect3DDevice9_SetVertexShader(device, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user