From John Ivar Haugland, "This is a fix to InputStream.cpp. (revision 11114) . I have attached the modified file.

The options where not passed on to the image reader plugins when reading the new osg2 format files, so I added the options to the osgDB.:readImageFile function call.

"
This commit is contained in:
Robert Osfield 2010-03-10 13:37:19 +00:00
parent 6da42d9cd6
commit ce19b37981

View File

@ -583,7 +583,7 @@ osg::Image* InputStream::readImage()
if ( readFromExternal )
{
image = osgDB::readImageFile( name );
image = osgDB::readImageFile( name, getOptions() );
if ( !image && _forceReadingImage ) image = new osg::Image;
}
if ( image.valid() )