Added releaseGLObjects to NodeCallbacks, Drawable::DrawCallbacks and wired up

osgProducer to use it when doing cleanup_frame.
This commit is contained in:
Robert Osfield
2006-10-02 15:38:31 +00:00
parent 02783e1dfd
commit e0599f652e
12 changed files with 81 additions and 8 deletions

View File

@@ -972,3 +972,14 @@ void Viewer::getUsage(osg::ApplicationUsage& usage) const
}
}
void Viewer::cleanup_frame()
{
for(EventHandlerList::iterator itr = _eventHandlerList.begin();
itr != _eventHandlerList.end();
++itr)
{
(*itr)->releaseGLObjects();
}
OsgCameraGroup::cleanup_frame();
}