From cdefee3e648826ba191210d6bb407d95df7e5080 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 20 Feb 2016 20:38:37 +0100 Subject: [PATCH] Add call to MultiObjectCache::releaseGLObjects --- components/resource/scenemanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/components/resource/scenemanager.cpp b/components/resource/scenemanager.cpp index 503b4ace8..0a0933474 100644 --- a/components/resource/scenemanager.cpp +++ b/components/resource/scenemanager.cpp @@ -480,6 +480,7 @@ namespace Resource void SceneManager::releaseGLObjects(osg::State *state) { mCache->releaseGLObjects(state); + mInstanceCache->releaseGLObjects(state); } void SceneManager::setIncrementalCompileOperation(osgUtil::IncrementalCompileOperation *ico)