InputStream::readImage() : added info about which file failed to load when printing error message

This commit is contained in:
Riccardo Corsi 2016-12-23 11:55:08 +01:00
parent dc13d4d5dc
commit a526cab590

View File

@ -843,7 +843,7 @@ osg::ref_ptr<osg::Image> InputStream::readImage(bool readFromExternal)
}
else
{
if (!rr.success()) OSG_WARN << rr.statusMessage() << std::endl;
if (!rr.success()) OSG_WARN << "InputStream::readImage(): " << rr.statusMessage() << ", filename: " << name << std::endl;
}
if ( !image && _forceReadingImage ) image = new osg::Image;