Added osg::flushAllDeletedGLObjects to clean up of graphics context after the existing osg::deleteAllGLObjects() to catch any cases where delete doesn't flush GL objects.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15150 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2015-10-08 15:58:24 +00:00
parent 27962a73ee
commit 572bb61a2d

View File

@ -431,6 +431,8 @@ void GraphicsContext::close(bool callCloseImplementation)
osg::deleteAllGLObjects(_state->getContextID());
osg::flushAllDeletedGLObjects(_state->getContextID());
OSG_INFO<<"Done delete of GL objects"<<std::endl;
}
else