[osg-users] Removing objects with shared GL state from scene graph

Chris Djali krizdjali at gmail.com
Thu Jul 25 14:54:51 PDT 2019


Hi,


> Are the Camera's being removed from the Window before it gets closed?  I have just checked the GraphicsContext::close() method and it calls all the Camera::releaseGLObjects(), which in turn will call the Renderer::releaseGLObjects(), which will now call the ObjectCache::releaseGLObjects().  After calling all the releaseGLObjects() the GraphicsContext::close() then calls the osg::deleteAllGLObjects(_state->getContextID())  of the context isn't shared.


There aren't any cameras in the GraphicsContext's list when its closeImplementation is called. The camera is removed from that list by its destructor, and its destructor is called when the ref_ptr is set to zero in the osg::View destructor.

Cheers,
Chris

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76496#76496







More information about the osg-users mailing list