Hi Chris, When a scene graph is deleted all the OpenGL objects are placed in buffers awaiting deletion of reuse. They can't be deleted right away as you can only delete OpenGL objects from the graphics thread associated with a graphics context - not only might you be calling delete for a thread which doesn't have a context current, you might actually have several contexts to deal with... this is why the OSG has these buffers. The graphics threads call a flush on these buffers on each new frame, and when a graphis context is delete (in OSG-2.x) the GL objects buffers are automatically flushed.
Robert. On Thu, Apr 10, 2008 at 10:12 PM, Dorosky, Christopher G < [EMAIL PROTECTED]> wrote: > > If I have an IVE model, with texture, and I delete the model, what > happens to the texture memory the texture was using? > > Is it freed? > > What about if the model is on a switch, and I turn the switch off? > > I am assuming that I have to do something manually to deal with this, > either way. > I seem to remember an osg::deleteOldTextureObjects() or something like > that. > > > Thanks, > > Chris > _______________________________________________ > 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

