Hi LiChi, You are correct, this is a mistake that needs to be fixed, the following for-loop is not even executed unless checkForGLErrors is true.
In fact, I've just spent an hour or so debugging a weird "Invalid operation" GL-error and it turned out to be caused by exactly this bug - the StateSet not compiling its state was causing the useProgram() in the GLObjectVisitor to fail as the program had not been compiled as expected. I've submitted a fix for this here: https://github.com/openscenegraph/OpenSceneGraph/pull/169 Cheers, Jannik ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69505#69505 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

