Matteo Bruni : d3dx9/tests: Raise admitted error a bit in D3DXSHEvalSphericalLight tests.

Alexandre Julliard julliard at winehq.org
Wed Apr 10 14:16:15 CDT 2013


Module: wine
Branch: master
Commit: 7802ab15ce2a5d3b735f8fdfaa1b2f04f3235153
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7802ab15ce2a5d3b735f8fdfaa1b2f04f3235153

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Wed Apr 10 01:22:58 2013 +0200

d3dx9/tests: Raise admitted error a bit in D3DXSHEvalSphericalLight tests.

---

 dlls/d3dx9_36/tests/math.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c
index af44957..8677825 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -3014,7 +3014,7 @@ static void test_D3DXSHEvalSphericalLight(void)
                     expected = j + test[l].roffset;
                 else
                     expected = test[l].red_expected[j];
-                ok(relative_error(expected, test[l].red_received[j]) < admitted_error,
+                ok(relative_error(expected, test[l].red_received[j]) < 0.0005f,
                     "Red: case %u, order %u: expected[%u] = %f, received %f\n", l, order, j, expected, test[l].red_received[j]);
 
                 if (test[l].green_received)
@@ -3023,7 +3023,7 @@ static void test_D3DXSHEvalSphericalLight(void)
                         expected = j + test[l].goffset;
                     else
                         expected = test[l].green_expected[j];
-                    ok(relative_error(expected, test[l].green_received[j]) < admitted_error,
+                    ok(relative_error(expected, test[l].green_received[j]) < 0.0005f,
                         "Green: case %u, order %u: expected[%u] = %f, received %f\n", l, order, j, expected, test[l].green_received[j]);
                 }
 
@@ -3033,7 +3033,7 @@ static void test_D3DXSHEvalSphericalLight(void)
                         expected = j + test[l].boffset;
                     else
                         expected = test[l].blue_expected[j];
-                    ok(relative_error(expected, test[l].blue_received[j]) < admitted_error,
+                    ok(relative_error(expected, test[l].blue_received[j]) < 0.0005f,
                         "Blue: case %u, order %u: expected[%u] = %f, received %f\n", l, order, j, expected, test[l].blue_received[j]);
                 }
             }




More information about the wine-cvs mailing list