Hi Robert, Ok I'll try to investigate further, but I forgot to say that sometimes when I remove a composite view I get the message :
"makeCurrent did not succeed, could not do flush/deletion of OpenGL objects." Is-it normal ? 2008/6/27 Robert Osfield <[EMAIL PROTECTED]>: > Hi Amalric, > > I'll have to step back from helping out with the remaining problems as > I know absolutely nothing about MFC, nor have a windows box to test > aginst. > > Robert. > > On Fri, Jun 27, 2008 at 12:02 PM, amalric alexandre > <[EMAIL PROTECTED]> wrote: > > Hi Robert, > > > > About my first problem concerning MFC threading an resize events, I was > > thinking I resolved the bug with User Interface threads but the bug is > back > > if I open/close a lot of new window. > > > > The bug appears later with this method but it doesn't resolve it. > > > > I'm sad about it. > > > > If someone has some experience with embedding osgViewer with MFC I'll be > > gratefull to get some help. > > Kind regards, > > 2008/6/27 amalric alexandre <[EMAIL PROTECTED]>: > >> > >> 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 > >>> osg-users@lists.openscenegraph.org > >>> > 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 > > > > > > -- > > Alexandre AMALRIC Ingénieur R&D > > =================================== > > PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille > > http://www.pixxim.fr > > _______________________________________________ > > 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 > -- Alexandre AMALRIC Ingénieur R&D =================================== PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille http://www.pixxim.fr
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org