Hi Robert -- in the osg/State header, the comment block for the setContextID() method reads as follows:

        /** Set the current OpenGL context uniqueID.
            Note, it is the application developers responsibility to
            set up unique ID for each OpenGL context.  This value is
            then used by osg::StateAttribute's and osg::Drawable's to
            ...

I suspect this is an old comment, as it has not been the application developer's responsibility to set a unique ID for, well, I've been working with OSG since 2004 and I've never recalled having to do this, so at least 7 years.

I'd submit a change, but I'm not quite sure (upon glancing at the source) where the unique ID comes from. If you would, could you update the comment to explain how the unique ID is generated and set in modern OSG?

Thanks,

--
  -Paul Martz      Skew Matrix Software
                   http://www.skew-matrix.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to