Re: ddraw/tests: Fix compilation with Visual C++ 2005.
27 May
2007
27 May
'07
3:18 p.m.
- 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 ?
27 May
27 May
6:48 p.m.
New subject: ddraw/tests: Fix compilation with Visual C++ 2005.
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 and got the expected result in each case. -- Francois Gouget <fgouget(a)free.fr> http://fgouget.free.fr/ 145 = 1! + 4! + 5!
6864
Age (days ago)
6864
Last active (days ago)
1 comments
2 participants
participants (2)
-
Francois Gouget -
Stefan Dösinger