Skip to content

Commit

Permalink
OutputStream writes images using its Options object
Browse files Browse the repository at this point in the history
when writing images, OutputStream can search files using its Options object rahter than always using FilePathList object of global Regidtry instance.
  • Loading branch information
Haojia521 committed Mar 27, 2018
1 parent fa8f186 commit 90e95ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osgDB/OutputStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 90e95ff

Please sign in to comment.