Hi,

I've got some code, where I set up a define inside for an osg::Geometry via

geometry.getOrCreateStateSet()->setDefine("MY_DEFINE")

The geometry is a sibling to another geometry not setting the define.
It works well if I don't run an osg::Optimizer, but running it effectively removes the define. Since I don't have the source code at hand, I cannot inspect this issue right now.

The optimizer is set up to use the SHARE_DUPLICATE_STATE, so I suspect the problem to be inside the logic which determines if two statesets are equal.
I'm using OSG 3.3.9 on Windows 7 64bit

cheers
Sebastian

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

Reply via email to