<div dir="ltr"><div dir="ltr">Hi Chris,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 21 Aug 2019 at 20:18, Chris Djali <<a href="mailto:krizdjali@gmail.com">krizdjali@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Is the plan still to have OSG itself release GL objects in the object cache when the contexts they're associated with are destroyed, and if so, have you had any further thoughts about how this might be accomplished?<br>
<br>
The problem is still that there's nothing in osgViewer that has the same lifetime as an osg::GraphicsContext, and osg isn't supposed to be aware of osgDB, so it has to be osgViewer that releases things, right?<br></blockquote><div><br></div><div>I have already added a osgDB::Registry::instance()->releaseGLObjects(state); to the osgViewer::Renader::releaseGLObjects():</div><div><br></div><div><br>void Renderer::releaseGLObjects(osg::State* state) const<br>{<br> osgDB::Registry::instance()->releaseGLObjects(state);<br><br> if (_sceneView[0].valid()) _sceneView[0]->releaseGLObjects(state);<br> if (_sceneView[1].valid()) _sceneView[1]->releaseGLObjects(state);<br>}</div><div><br></div><div>This is in master and the 3.6 branch. This should clear the ObjectCache. It's why I added this.</div><div><br></div><div>I can't keep running around in circles on this. I've put in a lot of effort to try and resolve what I can, but now I need to get on with other work.<br></div><div><br></div><div>Robert.<br></div><div><br></div><div><br></div><div> </div></div></div>