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:
parent
f4e71bad3a
commit
74f1838960
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user