gwaldron / osgearth

3D Maps for OpenSceneGraph / C++14
https://www.pelicanmapping.com/home-1/opensource
Other
1.47k stars 772 forks source link

PBRMaterial: Fix Linux constructor build error #2504

Closed emminizer closed 4 months ago

emminizer commented 4 months ago

While Windows was happy to convert the osg::Image* to a ref_ptr<osg::Image> and construct a Result from that, gcc was unhappy. Explicitly constructing the ref_ptr fixes the issue.

gwaldron commented 4 months ago

Thanks Dan.