<div dir="ltr">Robert,<div>Agreed, we did this out of temporary necessity; the right thing moving forward is for osgEarth to check the OSG version when creating/registering the osg::TextureBuffer serializer.</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Glenn Waldron</div></div></div></div>
<br><div class="gmail_quote">On Mon, Mar 27, 2017 at 3:27 AM, Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Li,<br>
<span class=""><br>
On 26 March 2017 at 23:26, Li Chi <<a href="mailto:s12345uperman@sohu.com">s12345uperman@sohu.com</a>> wrote:<br>
> Sorry for bothering, I found the cause of the warning "ObjectWrapperManager::<wbr>addWrapper(): 'osg::TextureBuffer' already exists. ".<br>
><br>
> Because osgEarth already has the osg::TextureBuffer serializer in TextureBufferSerializer.cpp file, so when use osg and osgEarth together, the warning message printed out.<br>
<br>
</span>This might be a bit awkward to resolve, it shouldn't really be<br>
osgEarth's place to implement serializers for core OSG classes because<br>
it has the potential of overlapping with core OSG implementations.  If<br>
osgEarth has a stable release this is in then we'll need to come up<br>
with some workaround - either making osgDB resilient to these<br>
conflicts or having osgEarth check OSG versions and not implement<br>
stuff, however, this is fraught with potential problems as the order<br>
and parameters serialized out could easily be different.<br>
<span class="HOEnZb"><font color="#888888"><br>
Robert.<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</div></div></blockquote></div><br></div>