From 74f183896060cc02846c1cb03b04944ee95938a9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 8 Oct 2015 15:58:22 +0000 Subject: [PATCH] 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 --- src/osg/GraphicsContext.cpp | 2 ++ 1 file changed, 2 insertions(+) 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"<