diff --git a/src/osgPlugins/dae/daeRMaterials.cpp b/src/osgPlugins/dae/daeRMaterials.cpp index c2d2b3cde..5da9d608a 100644 --- a/src/osgPlugins/dae/daeRMaterials.cpp +++ b/src/osgPlugins/dae/daeRMaterials.cpp @@ -1136,7 +1136,7 @@ osg::Texture2D* daeReader::processTexture( } else { - osg::ref_ptr img = osgDB::readRefImageFile(parameters.filename); + osg::ref_ptr img = osgDB::readRefImageFile(parameters.filename, _pluginOptions.options.get()); if (!img.valid()) { diff --git a/src/osgPlugins/dae/daeReader.h b/src/osgPlugins/dae/daeReader.h index 14930f662..a9c8169a7 100644 --- a/src/osgPlugins/dae/daeReader.h +++ b/src/osgPlugins/dae/daeReader.h @@ -157,6 +157,7 @@ public: int precisionHint; ///< Precision hint flags, as specified in osgDB::Options::PrecisionHint bool usePredefinedTextureUnits; TessellateMode tessellateMode; + osg::ref_ptr options; }; daeReader(DAE *dae_, const Options * pluginOptions);