diff --git a/examples/osgkeystone/osgkeystone.cpp b/examples/osgkeystone/osgkeystone.cpp index ccb2f5d5a..707b1bd89 100644 --- a/examples/osgkeystone/osgkeystone.cpp +++ b/examples/osgkeystone/osgkeystone.cpp @@ -38,20 +38,6 @@ int main( int argc, char **argv ) { osg::ArgumentParser arguments(&argc,argv); - - osg::ref_ptr config; - std::string configFile; - if (arguments.read("-c",configFile)) - { - config = osgDB::readFile(configFile); - } - if (!config) - { - config = new osgViewer::WoWVxDisplay(); // new osgViewer::SingleWindow(100,100,800,600,0); - } - - OSG_NOTICE<<"Config "<getOrCreateStateSet()) ); @@ -88,9 +67,6 @@ int main( int argc, char **argv ) // add camera manipulator viewer.setCameraManipulator(new osgGA::TrackballManipulator()); -#if 0 - - OSG_NOTICE<<"KeystoneFileNames.size()="<getKeystoneFileNames().size()<getKeystoneFileNames().begin(); itr != ds->getKeystoneFileNames().end(); @@ -135,7 +111,7 @@ int main( int argc, char **argv ) viewer.setUpViewForKeystone(keystone.get()); } -#endif + viewer.realize(); while(!viewer.done())