Hello!

There seems to be a bug in ATI OpenGl drivers when using uniform arrays.
For e.g. the uniform array "float arr[3]" I have found that 
getUniformLocation("arr") returns an error while 
getUniformLocation("arr[0]") returns the desired value.

This is in clear contrast to the glGetUniformLocation documentation, 
where it says:
"... Except if the last part of name indicates a uniform variable array, 
the location of the first element of an array can be retrieved by using 
the name of the array, or by using the name appended by "[0]"."

Has anybody else experienced this issue? I expect no workaround will be 
implemented in OSG, so I'll have to do without array uniforms?

If nothing else, this should warn anybody searching for ATI and array 
uniforms...

regards
cm
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to