[osg-users] Possible bug in pragmatic shader composition and optimizers

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Mon Jul 13 10:56:40 PDT 2015


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




More information about the osg-users mailing list