Hi Pjotr, On 5/12/12 3:40, Pjotr Svetachov wrote: > We recently converted our stereo viewer to cull the scene graph in parallel. > But now we > are having a crash with some models that have bump mapping effects on them. > The crash > happens in Effect::traverse because both threads try to add new techniques. > > Is there a reason this is done during the cull traversal? From my first scan > through > this code it looks like this can also be done earlier, like in the > constructor of the > Effect class. Or will this break other code I'm not aware off? Anyone > familiar with > that piece of code who can shed some light on this issue?
My guess is that this is done later since some effects need to have a valid GL context in order to decide which techniques should be used (based on detected GL features). Cheers, /ulrich _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org