diff --git a/examples/osgfont/osgfont.cpp b/examples/osgfont/osgfont.cpp index 9255bea0c..5f3eb9bee 100644 --- a/examples/osgfont/osgfont.cpp +++ b/examples/osgfont/osgfont.cpp @@ -84,8 +84,8 @@ typedef std::list Sizes; int main(int argc, char** argv) { - osgViewer::Viewer viewer; osg::ArgumentParser args(&argc, argv); + osgViewer::Viewer viewer(args); // Make sure we have the minimum args... if(argc <= 2)