Hi,

After update from 3.2.0 to 3.5.1 we found that buildCompileMap doesn't work 
anymore as expected.
The code of StateToCompile was changed and _markerObject appeared.

In IncrementalCompileOperation::CompileSet::buildCompileMap the 
    StateToCompile stc(mode); constructor initialize it to 0:
( StateToCompile(GLObjectsVisitor::Mode mode, osg::Object* markerObject=0);)

So most of the checks in different StateToCompile::apply methods like
if (_markerObject.get()!=drawable.getUserData())
returns false and the code is not executed.
So stc remains empty().

Maybe that object from IncrementalCompileOperation    
_markerObject = new osg::DummyObject;
_markerObject->setName("HasBeenProcessedByStateToCompile");

should be used for initialization?


Thank you!

Cheers,
George

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66453#66453





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to