Thanks for all these clarifications ! Is it the same mechanism for StateAttribute ?
For example, if I create a subclass "MyTexture" of osg::Texture, will compileGLObjects/releaseGLObjects methods of "MyTexture" be automatically called when needed ? > If you subgraphs aren't attached to the viewer's scene graph it won't be able > to call your detached subgraphs > though, so in these instances you'll need to call the methods explicitly. Does that mean I should call "releaseGLObjects" every time I remove a subgraph from the main viewer graph ? Is it enough to call it on the subgraph top object or should I call it recursively ? Thanks Aurelien ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45477#45477 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

