Hi Chris, Thanks for spotting the error. Your suggested fix looks sound to me, now merged and submitted to svn/trunk and OSG-3.2 branch.
Robert. On 17 October 2013 17:38, D. Christopher Fennell < [email protected]> wrote: > 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 >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

