Hi Paul,

Thanks for the note about the out of data comments.  I've updated this
comment and checked it into svn/trunk and the OSG-3.0.  The ContextID
is set by the osgViewer::GraphicsWindow intialization, calling
GraphicsContext::createContextID() that manages the unique ID's.

Robert.

On Sun, Jun 26, 2011 at 10:43 PM, Paul Martz <[email protected]> wrote:
> 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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to