[osg-users] release and flush GL Objects?
robert.osfield at gmail.com
Mon Sep 17 09:05:45 PDT 2007
I'm not 100% sure it will work but try:
On 9/17/07, Rafa Gaitan <rafa.gaitan at gmail.com> wrote:
> Hi Robert,
> We are using the osgViewer::Viewer to integrate our app with
> Java using jogl to create a GL context and
> GraphicsWindowEmbedded class. In the past using the
> SimpleViewer we had the call releaseAllGLObjects(),
> which internally calls to sceneView->releaseAllGLObjects()
> and some more stuff.
> Is there any similar call inside osgViewer::Viewer?, with jogl
> there is an special Panel that use internally pbuffers to create
> the context, but when we resize the component the context is
> lost, so calling releaseGLObjects did the trick for us, but now
> I don't find a good way to get the same things working.
> I tried with viewer->getCamera()->releaseGLObjects(); but
> work. Maybe adding a releaseAllGLObjects method in View, or
> in Viewer is a good place. thoughts?
> Rafael Gaitán Linares
> Instituto de Automática e Informática Industrial http://www.ai2.upv.es
> Ciudad Politécnica de la Innovación
> Universidad Politécnica de Valencia
> osg-users mailing list
> osg-users at lists.openscenegraph.org
More information about the osg-users