OutputStream writes images using its Options object
when writing images, OutputStream can search files using its Options object rahter than always using FilePathList object of global Regidtry instance.
This commit is contained in:
parent
fb39450067
commit
0d386ff3f1
@ -580,7 +580,7 @@ void OutputStream::writeImage( const osg::Image* img )
|
|||||||
case IMAGE_INLINE_FILE:
|
case IMAGE_INLINE_FILE:
|
||||||
if ( isBinary() )
|
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 );
|
osgDB::ifstream infile( fullPath.c_str(), std::ios::in|std::ios::binary );
|
||||||
if ( infile )
|
if ( infile )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user