diff --git a/examples/osgconv/osgconv.cpp b/examples/osgconv/osgconv.cpp index 4100a2fdf..9a73dbda7 100644 --- a/examples/osgconv/osgconv.cpp +++ b/examples/osgconv/osgconv.cpp @@ -140,7 +140,7 @@ parse_args( int argc, char **argv, FileNameList &fileNames, case('e'): if (nexticreateLibraryNameForExt(argv[nexti++]); + std::string libName = osgDB::Registry::instance()->createLibraryNameForExtension(argv[nexti++]); osgDB::Registry::instance()->loadLibrary(libName); } else