Hi Ren, Normally osgViewer will discard all the GL objects for a graphics context that has just been deleted, but for your particular usage model I can't say. If you aren't using svn/trunk try it as I closed a few more avenues for GL objects not getting discarded in certain circumstances.
In terms of manually forcing the discard of all the GL handles you can do a scene->releaseGLObjects() and then a osg::discardAllGLObjects(); This is for svn/trunk & 2.9.6 but for prior versions you'll need to call osg::discardAllDeletedGLObejcts() as the discardAllGLobjects() is a recent addition. Robert. On Thu, Dec 24, 2009 at 12:48 PM, Ren Liwei <[email protected]> wrote: > Hi Robert, > > I released all osg objects manually when the activeX release. But the global > objects including osg built-in global objects were not released. If I need to > manually release these objects? And How? > > Thank you! > > Cheers, > Ren > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=21852#21852 > > > > > > _______________________________________________ > 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

