[osg-users] release and flush GL Objects?

Schmidt, Richard, SDGE1 Richard.Schmidt at eads.com
Tue Sep 18 23:34:42 PDT 2007

Another problem is, that nodes which are currently not connected to the
sceneview/camera won't release their GL objects. 


On 9/17/07, Rafa Gaitan <rafa.gaitan at gmail.com> wrote:
> > viewer.getSceneData()->releaseGLObjects(); // or getCamera()...
> >
> viewer.getCamera()->getGraphicsContext()->getState()->reset();
> > osg::flushAllDeletedGLObjects(0);
> Yes, This works better, Thank You!, there is some issues with
> PagedLOD nodes, so I need to debug more and see how to solve
> them.

It might well be the database pager has objects still held into its
internal lists but not just merged.

Once you get to the bottom of it we could possibly wrap up all that is
required in a clean up method in

BTW, could you try removing the original GraphicsWindowEmbedded and
replace it with new one as this is effectively you are doing -
changing the graphics context from underneath the viewer.


osg-users mailing list
osg-users at lists.openscenegraph.org

More information about the osg-users mailing list