Hi Robert, This fix is working great !!! No more texture disappearing.
Kind regards, 2008/6/26 Robert Osfield <[EMAIL PROTECTED]>: > On Thu, Jun 26, 2008 at 4:42 PM, amalric alexandre > <[EMAIL PROTECTED]> wrote: > > 2nd Problem : > > > > I'm glad that you have reproduced the bug, loosing texture seems to me > > connected to context ID too, but I hadn't the time to go further. > > I've tracked down the problem to the reuse of contextID, something in > itself was working correctly, but the subgraphs below the cameras > weren't been modified to account for the removal of the previous > contexts. The OSG already has a mechanism to help clean up a the > scene graph to avoid these types of problems, but in this particular > usage combination the required relaseGLObjects() wasn't been called. > > I have now changed the GraphicsContext::removedCamera() method to it > works out which subgraphs need the releaseGLObjects() called upon, > this fixes the texture/display lists issues you've seen. The changed > GraphicsContext.cpp is attached, and also checked in to SVN. Could > you please try it out at your end and confirm whether it's fixed. > > Robert. > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- Alexandre AMALRIC Ingénieur R&D =================================== PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille http://www.pixxim.fr
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

