On Sun, May 26, 2013 at 12:03 PM, James Turner wrote:
> Another implicit type conversion failure:
>
> ============
> VERTEX glCompileShader "/Users/jmt/FGFS/fgdata/Shaders/tree-haze.vert" FAILED
>
> VERTEX Shader "/Users/jmt/FGFS/fgdata/Shaders/tree-haze.vert" infolog:
> ERROR: 0:89: '*' does not operate on 'float' and 'int'
>
>
> glLinkProgram "" FAILED
>
> Program "" infolog:
> ERROR: One or more attached shaders not successfully compiled
> =============
>
> Guess Apple's compiler is rather stricter about this stuff than everyone 
> else's

Hi James,

The line in question is:

  gl_TexCoord[0].y =  gl_TexCoord[0].y + 0.25 * step(snow_level,
gl_Color.z) + 0.5 * season;

The likely cast error is 0.5 * season, as season is int, but I'd
expect you to see that on all
rendering variants, as the same code is used in ALS, Rembrandt and
default rendering schemes.

I've pushed a speculative fix.  Let me know if that clears it up.

-Stuart

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to