[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: ddraw/tests: Fix compilation with Visual C++ 2005.
From:       Francois Gouget <fgouget () free ! fr>
Date:       2007-05-27 17:48:28
Message-ID: Pine.LNX.4.64.0705271947310.26992 () amboise ! dolphin
[Download RAW message or body]

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@free.fr>              http://fgouget.free.fr/
                              145 = 1! + 4! + 5!



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic