Robert, I have applied your patch and tried very hard to crash the program, but I couldn't :) so I think you were absolutely correct.
El Monday 01 October 2007 16:37:51 Robert Osfield escribió: > Hi Alberto, > > On 10/1/07, Robert Osfield <[EMAIL PROTECTED]> wrote: > > The fact you are using a .obj is just a symptom and not a cause. The > > issue most likely stems from modifying state at the same time that its > > being read from at the same time. > > I've added the line > > _stateset->setDataVariance(osg::Object::DYNAMIC); > > To the src/osgGA/StateSetManipulator.cpp and the problem with toggling > texture mode goes away for me. Could you please try the attached > file. > > This isn't a good solution though... as it will case the whole frame > to wait to complete and not allow any overlapping of update/cull and > draw so all the performance benefits of DrawThreadPerContext would be > gone. > > The only other way to fix this would be to hold the update back till > the draw is completed, this would enable one just to pay the > performance penalty when you actually change the state rather than on > every frame. Unfortunately there is no easy hook in osgViewer to do > this right now. > > Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

