I know I solved this in MDI application somehow. My grep on _contextID found me this if it helps
/** Set the current OpenGL context uniqueID. * The ContextID is used by classes like osg::StateAttribute's and osg::Drawable's to * help manage seperate OpenGL objects, such as display lists, vertex buffer objects * and texture object for each graphics context. The ContextID simply acts as an index * into arrays that these classes maintain for the purpose of storing GL object handles. * * Note, osgViewer::GraphicsWindow will automatically set up the ContextID for you, * so you will rearely need to set this yourself. * * The exception is when creating your own graphics context, where you should set * the ContextID uniquely for each graphics context. * * Typical settings for ContextID are 0,1,2,3... up to the maximum * number of graphics contexts you have set up. By default contextID is 0. */ inline void setContextID(unsigned int contextID) { _contextID=contextID; } in State (header) Nick On Fri, Jul 11, 2014 at 7:56 AM, Filip Arlet <fili...@seznam.cz> wrote: > Hi, > I know that, but when I debug my app, render will call > getOrCreateGLBufferObject() with new contextID without knowledge of sharing > context and creates new VBO. > > Thank you! > > Cheers, > Filip > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=60246#60246 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- trajce nikolov nick
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org