From 572bb61a2df8730a0f10e1501a09313cac77ccd8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 8 Oct 2015 15:58:24 +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/trunk@15150 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 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"<