Introduced preliminary osg::deleteAllGLObjects() and osg::discardAllGLObjects() functions and associated support into Texture and BufferObjects

This commit is contained in:
Robert Osfield
2009-11-26 12:33:07 +00:00
parent 7146f8a62f
commit ab8d93a181
7 changed files with 241 additions and 20 deletions

View File

@@ -531,11 +531,11 @@ void GraphicsContext::close(bool callCloseImplementation)
if (makeCurrent())
{
osg::notify(osg::INFO)<<"Doing Flush"<<std::endl;
osg::notify(osg::INFO)<<"Doing delete of GL objects"<<std::endl;
osg::flushAllDeletedGLObjects(_state->getContextID());
osg::deleteAllGLObjects(_state->getContextID());
osg::notify(osg::INFO)<<"Done Flush "<<std::endl;
osg::notify(osg::INFO)<<"Done delete of GL objects"<<std::endl;
_state->reset();
@@ -557,7 +557,7 @@ void GraphicsContext::close(bool callCloseImplementation)
{
osg::notify(osg::INFO)<<"Doing discard of deleted OpenGL objects."<<std::endl;
osg::discardAllDeletedGLObjects(_state->getContextID());
osg::discardAllGLObjects(_state->getContextID());
}
if (_state.valid())