From b0285b002298adc92e5133ae887b0107a8a62a1e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 23 Jun 2016 16:32:30 +0100 Subject: [PATCH] Added handling of return value --- applications/osgconv/osgconv.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/applications/osgconv/osgconv.cpp b/applications/osgconv/osgconv.cpp index daeb8ca32..8c5ba420d 100644 --- a/applications/osgconv/osgconv.cpp +++ b/applications/osgconv/osgconv.cpp @@ -625,7 +625,10 @@ int main( int argc, char **argv ) while (arguments.read("-e",ext)) { std::string libName = osgDB::Registry::instance()->createLibraryNameForExtension(ext); - osgDB::Registry::instance()->loadLibrary(libName); + if (osgDB::Registry::instance()->loadLibrary(libName)==osgDB::Registry::NOT_LOADED) + { + OSG_NOTICE<<"Unable to load library : "<