diff --git a/src/osg/GraphicsContext.cpp b/src/osg/GraphicsContext.cpp index 1d4c25bc1..08343bbbe 100644 --- a/src/osg/GraphicsContext.cpp +++ b/src/osg/GraphicsContext.cpp @@ -564,6 +564,8 @@ void GraphicsContext::close(bool callCloseImplementation) osg::deleteAllGLObjects(_state->getContextID()); + osg::flushAllDeletedGLObjects(_state->getContextID()); + OSG_INFO<<"Done delete of GL objects"<