X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=simgear%2Fscene%2Fsky%2Fnewcloud.cxx;h=6d35ad998b224074b7ebe08d8385f7c8bb38986a;hb=d04cf4d8978866eb80a1639b6d4ddfe387338c77;hp=162f137a0c58c38941c449d99cbdd2d27fe88f1d;hpb=e7f151ad02467cb1763b118e699776d9b3e10492;p=simgear.git diff --git a/simgear/scene/sky/newcloud.cxx b/simgear/scene/sky/newcloud.cxx index 162f137a..6d35ad99 100644 --- a/simgear/scene/sky/newcloud.cxx +++ b/simgear/scene/sky/newcloud.cxx @@ -46,6 +46,7 @@ #include #include #include +#include #include #include @@ -108,9 +109,11 @@ SGNewCloud::SGNewCloud(string type, "texture"), "image"), texture); - osg::ref_ptr options + ref_ptr options = makeOptionsFromPath(tex_path); - if ((effect = makeEffect(pcloudEffect, true, options))) + ref_ptr sgOptions + = new SGReaderWriterXMLOptions(*options.get()); + if ((effect = makeEffect(pcloudEffect, true, sgOptions.get()))) effectMap.insert(EffectMap::value_type(texture, effect)); } else { effect = iter->second.get();