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/branches/OpenSceneGraph-3.4@15149 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2015-10-08 15:58:22 +00:00
parent f4e71bad3a
commit 74f1838960

View File

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