[PATCH] d3dx9/tests: Correct Fresnel reference term.
Alex Henrie <[email protected]> Fri, 3 Nov 2017 19:10:31 +0100
| Newsgroups | gmane.comp.emulators.wine.patches |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Alex Henrie <[email protected]> --- Fixes test failure on 64-bit Linux. The exact answer, without rounding error, was obtained by plugging the following into Wolfram Alpha: ((0.5*((1.5*1.5+0.5*0.5-1)^0.5+0.5)-1)^2/(0.5*((1.5*1.5+0.5*0.5-1)^0.5-0.5)+1)^2+1)*0.5*((1.5*1.5+0.5*0.5-1)^0.5-0.5)^2/((1.5*1.5+0.5*0.5-1)^0.5+0.5)^2 --- dlls/d3dx9_36/tests/math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c index ff3b098991..d8e1338b92 100644 --- a/dlls/d3dx9_36/tests/math.c +++ b/dlls/d3dx9_36/tests/math.c @@ -302,7 +302,7 @@ static void D3DXFresnelTest(void) BOOL equal; fresnel = D3DXFresnelTerm(0.5f, 1.5f); - equal = compare_float(fresnel, 8.91867056e-02f, 1); + equal = compare_float(fresnel, 8.91867128e-02f, 1); ok(equal, "Got unexpected Fresnel term %.8e.\n", fresnel); } -- 2.14.2