   Maximum size of a glsl program
  Hi,Is there an implementation dependant variable for the maximum size of a glsl program ? I had an exception in the ATI driver, and just by simplifying my (rather big) fragment shader (w/o changing uniforms, varyings... just simplifying the calcs), it works just fine. Thanks   
  No, there is no way to know the maximum number of instructions a GPU supports with OpenGL. This was asked a few times on the suggestions forum at opengl.org but the ARB isn't giving it.   ;  How do you manage this in an application then ? Wait until it crashes ?   ;  It ought to hand out errors at compile or link time.And then, yes. You revert to a simpler shader...;  I'm devastated to hear this, but thanks anyway   ;  The maximums are defined by DX's shader models, so you can try to detect (via extension support, HW detection) what shader model the gpu supports, and then, load an appropiate shader for that shader model.   