Changeset 151 for osgVisual/src/core/visual_core.cpp
- Timestamp:
- Nov 9, 2010, 10:37:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/core/visual_core.cpp
r148 r151 43 43 } 44 44 45 xmlDoc* tmpDoc;46 util::getModuleXMLConfig( configFilename, "core", tmpDoc );47 if(tmpDoc)48 {49 xmlFreeDoc(tmpDoc); xmlCleanupParser();50 }51 52 53 45 // Configure osg to use KdTrees 54 46 osgDB::Registry::instance()->setBuildKdTreesHint(osgDB::ReaderWriter::Options::BUILD_KDTREES); … … 79 71 #ifdef USE_DISTORTION 80 72 // Initialize distortion 81 OSG_NOTIFY( osg::ALWAYS ) << "Using distortion." << std::endl;82 73 distortion = new visual_distortion( viewer, arguments, configFilename ); 83 distortion->initialize( rootNode, viewer->getCamera()->getClearColor() ); 84 distortedSceneGraph = distortion->getDistortedSceneGraph(); 74 distortedSceneGraph = distortion->initialize( rootNode, viewer->getCamera()->getClearColor() ); 85 75 #endif 86 76
Note: See TracChangeset
for help on using the changeset viewer.