Hi everybody,
I'm not sure if this is the correct forum, but there is a bug in Program.cpp
regarding uniform buffer objects (UBO) in the LinkProgram function.
The following line
_extensions->glGetProgramiv(_glProgramHandle,
GL_ACTIVE_UNIFORM_MAX_LENGTH,
&maxBlockNameLen);
should be
_extensions->glGetProgramiv(_glProgramHandle,
GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH
&maxBlockNameLen);
The bug will return an incorrect length resulting in unpredictable results with
UBO bindings to a program.
Thanks,
Chris
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=56834#56834
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org