From ce19b379818c9be07afe31a8a2ecc8b325714a59 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 10 Mar 2010 13:37:19 +0000 Subject: [PATCH] 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. " --- src/osgDB/InputStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgDB/InputStream.cpp b/src/osgDB/InputStream.cpp index 15f24ec2f..55b7409f5 100644 --- a/src/osgDB/InputStream.cpp +++ b/src/osgDB/InputStream.cpp @@ -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() )