Hi there, 

First of all, I'm back to FlightGear after a bit longer vacation :-)
I'm very happy that I released a fg-git for Mac OS, but immediately after that, 
a user gave me a bug report. X-)

The core problem is that an implicit cast (especially from int to double or 
float) in shader code leads some nVidia drivers a fatal error:
  (0) : fatal error C9999: can't find pow function in stdlib
  Cg compiler terminated due to fatal error

In his case, this happened when he was adjusting Performance vs Quality slider.
So I grep pow in Shaders and found that urban.vert has this line:

    emission_factor *= 0.5*pow(tc.r+0.8*tc.g+0.2*tc.b, 2) -0.2;

I changed 2 to 2.0 and the error went out.

This, I believe, is a problem in  some of nVidia drivers since it doesn't 
happen on my Macs, but it's safer not to use implicit cast in function calls.
so please check your shader code and eliminate such implicit casts.

Best,

Tat

---
Tatsuhiro Nishioka 
http://macflightgear.sourceforge.net/


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to