Broken code with new GT200 OpenGL driver

hi,
i got my new GT200 board and tried to run some of my latest work. but the compiler complained about lines as this:


    const vec4 geom_frag_coord_clpspc = vec4(...);

the error message says that a non constant expression is used. i hope this is a driver bug because i can not see an error with such an assignment operation. if i remove the cosnt all is fine, but i do not want to (because i think it is correct)!

p.s. driver version 177.35 and 177.40 windows x64.

-chris

Don’t know off-hand if it’s correct, but might try putting a const in front of the other vec4. Compiler should be smart enough to know, but…

The GLSL supports the const keyword only for compile time constants or function parameters. If the vec4(…) contains anything other than constant values or simple expressions composed from constant values, the geom_frag_coord_clpspc variable can not be const.

good to know. thanks, so it is my fault :stuck_out_tongue:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.