Added handling of return value
This commit is contained in:
parent
07137f4111
commit
b0285b0022
@ -625,7 +625,10 @@ int main( int argc, char **argv )
|
|||||||
while (arguments.read("-e",ext))
|
while (arguments.read("-e",ext))
|
||||||
{
|
{
|
||||||
std::string libName = osgDB::Registry::instance()->createLibraryNameForExtension(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 : "<<libName<<std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string libName;
|
std::string libName;
|
||||||
|
Loading…
Reference in New Issue
Block a user