Re: ddraw/tests: Fix compilation with Visual C++ 2005.

2007-05-27 Thread Francois Gouget
On Sun, 27 May 2007, Stefan Dösinger wrote: > > -light.dvAttenuation0 = 0.0 / 0.0; /* NaN */ > > +light.dvAttenuation0 = zero / zero; /* NaN */ > Are you sure the compiler doesn't optimize that away to 1.0 ? I added a printf to see what's the value of dvAttenuation0 after the assignment

Re: ddraw/tests: Fix compilation with Visual C++ 2005.

2007-05-27 Thread Stefan Dösinger
> -light.dvAttenuation0 = 0.0 / 0.0; /* NaN */ > +light.dvAttenuation0 = zero / zero; /* NaN */ Are you sure the compiler doesn't optimize that away to 1.0 ? pgpr3Ba9vW7WV.pgp Description: PGP signature