Hi Rafa,

I'm not 100% sure it will work but try:

 viewer->getSceneData()->releaseAllGLObjects();

Robert.

On 9/17/07, Rafa Gaitan <[EMAIL PROTECTED]> 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
> doesn't
> work. Maybe adding a releaseAllGLObjects method in View, or
> in Viewer is a good place. thoughts?
>
> Rafa.
>
>
> --
> 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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to