<div dir="ltr">Hi Sebastian,<br><div class="gmail_extra"><br><div class="gmail_quote">On 14 July 2015 at 09:14, Sebastian Messerschmidt <span dir="ltr"><<a href="mailto:sebastian.messerschmidt@gmx.de" target="_blank">sebastian.messerschmidt@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Me again,<br>
<br>
I've attached a minimal example which illustrates the problem.<br>
It seems the combination<br>
osgUtil::Optimizer::SHARE_DUPLICATE_STATE | osgUtil::Optimizer::STATIC_OBJECT_DETECTION<br>
<br>
causes the both geometries to be rendered as if the define was not set.<br>
If the optimizer is not run the geometries are rendered as expected.<br></blockquote><div><br></div><div>Thanks for the example, haven't tested it yet as earlier this morning I created my own example to reproduce the bug. <br><br>Since reproducing the bug I have tracked down the problem to the osg::StateSet::compare() implementation that didn't have a code path for comparing the StateSet::_defineList. Adding a code path for the _defineList solved the bug for my example - it just ran osgUtil::Optimizer::optimize(..).<br><br></div><div>I have checked the bug fix into svn/trunk and the OSG-3.4 branch. Could you test this out and let me know if it works for you?<br><br></div><div>Cheers,<br></div><div>Robert.<br></div><div> </div><div><br><br> </div></div></div></div>