<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Tested trunk version, which fixes the
      problem.<br>
      <br>
      Thanks a lot.<br>
      <br>
      Cheer<br>
      Sebastian<br>
    </div>
    <blockquote
cite="mid:CAFN7Y+WaJtGcn9Fbk6V0b+Vwxr_O64OS7Q6w6HFyMS6UtOqv3g@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
                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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>