Merge pull request #511 from Haojia521/master
OutputStream writes images using its Options object
This commit is contained in:
commit
15e2f0ae00
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user