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:
parent
27962a73ee
commit
572bb61a2d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user