The ddraw tests don't compile with Visual C++ 2005.

Francois Gouget fgouget at free.fr
Sun May 27 06:17:23 CDT 2007


Visual C++ 2005 does not like the way we compute the infinity and NaN 
values. I've tried replacing the current divisions by zero with 
arithmetic on FLT_MAX (at least for the infinity calculations), but it 
did not like that either.

Does anyone know how to make these calculations portable?
How does one get at these values on Windows?


diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c
[...]
     light.dvAttenuation0 = -1.0 / 0.0; /* -INFINITY */
[...]
     light.dvAttenuation0 = 1.0 / 0.0; /* +INFINITY */
[...]
     light.dvAttenuation0 = 0.0 / 0.0; /* NaN */



-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
                            1 + e ^ ( i * pi ) = 0



More information about the wine-devel mailing list