From a526cab5909d0a464721c9b2811212892b4168e7 Mon Sep 17 00:00:00 2001 From: Riccardo Corsi Date: Fri, 23 Dec 2016 11:55:08 +0100 Subject: [PATCH] InputStream::readImage() : added info about which file failed to load when printing error message --- 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 dd1d494ff..6d2de5ff5 100644 --- a/src/osgDB/InputStream.cpp +++ b/src/osgDB/InputStream.cpp @@ -843,7 +843,7 @@ osg::ref_ptr 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;