Hi Adrian, The problem might well be that the outgoing context is cleaning up it's scene graph and associated OpenGL without know that they are shared. You could remove the scene graph from the associated camera before closing it to prevent the graphics window automatically cleanly up all associate OpenGL objects.
Robert. On Wed, Jan 21, 2009 at 4:14 PM, Adrian Egli OpenSceneGraph (3D) <[email protected]> wrote: > Thanks for the replay, but i can not find any topic corresponding this > contex. I don't know what's going wrong, but > if i share an openGL context, say from my master camera and then i suddenly > like to close a slave cam, i shouldn't > close the shared context. because i still have the current context in use, > right? It doesn't delete the master's context, but > i loose the textures, may this is what your like to give as hint. but i am > not sure whether it removes the textures only. > > /adrian > > 2009/1/21 Jean-Sébastien Guay <[email protected]> >> >> Hi Adrian, >> >>> i share the context, when i remove the slave, i will loose all textures >>> (:-)) >> >> This has been discussed a lot in the past, search the archives. Hint: >> disable "unref textures on apply". >> >> Hope this helps, >> >> J-S >> -- >> ______________________________________________________ >> Jean-Sebastien Guay [email protected] >> http://www.cm-labs.com/ >> http://whitestar02.webhop.org/ >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > -- > ******************************************** > Adrian Egli > > _______________________________________________ > 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

