diff --git a/src/osgDB/OutputStream.cpp b/src/osgDB/OutputStream.cpp index 073e852a2..be625826c 100644 --- a/src/osgDB/OutputStream.cpp +++ b/src/osgDB/OutputStream.cpp @@ -580,7 +580,7 @@ void OutputStream::writeImage( const osg::Image* img ) case IMAGE_INLINE_FILE: if ( isBinary() ) { - std::string fullPath = osgDB::findDataFile( img->getFileName() ); + std::string fullPath = osgDB::findDataFile( img->getFileName(), _options ); osgDB::ifstream infile( fullPath.c_str(), std::ios::in|std::ios::binary ); if ( infile ) {