diff --git a/src/osg/GraphicsContext.cpp b/src/osg/GraphicsContext.cpp index 828603b4a..7d953e35a 100644 --- a/src/osg/GraphicsContext.cpp +++ b/src/osg/GraphicsContext.cpp @@ -431,6 +431,8 @@ void GraphicsContext::close(bool callCloseImplementation) osg::deleteAllGLObjects(_state->getContextID()); + osg::flushAllDeletedGLObjects(_state->getContextID()); + OSG_INFO<<"Done delete of GL objects"<