Hi, the osg::discardAllDeletedGLObjects has been found. the function was undefined because I hadn't add the file path osg/GLObjects. :-*
Now I have new problems. Problem1: the parameter of discardAllDeletedGLObjects is a contextID. How can I get the context ID? The GraphicsContext was created like this: osg::ref<osg::GraphicsContext> gc; then in cpp file: gc = osg::GraphicsContext::createGraphicsContext(traits.get()); Problem2: all the destruction functions in OSG are protected . So I can not using delete myself. But If I want to release all the resources like graphicscontext... What can I do? using releaseGLObjects? If so, the key is that there are many releaseGLObjects() functions in different classes ,which should I choose? call releaseGLObjects one by one? Thank you! many thanks Cheers, Licheng ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31563#31563 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

