Hi Robert, Yep, I can confirm the return value of gc->getState()->getContextID() is increasing as you describe for each brower plugin instance created. Does that mean I should be ok sharing scengraph between viewers? It certainly seems ok now I've disabled the unref images after apply flag on the textures. Chris Denham.
robertosfield wrote: > Hi Chris, > > On 14 January 2012 09:30, Chris Denham <> wrote: > > > Hi Robert, > > To answer your question about how I manage the graphics contexts. > > I just create a new one for the window handle provided by each instance of > > my browser plugin e.g > > > > Code: > > traits->inheritedWindowData = new WindowData(hWnd); > > gc = osg::GraphicsContext::createGraphicsContext(traits); > > > > After gc is assigned check the value of gc->getState()->getContextID() > for each of the contexts created. In theory for multiple contexts > they should read 0,1,2,etc. > > Robert. > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ------------------ > Post generated by Mail2Forum ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44855#44855 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

