Ignore:
Timestamp:
Nov 9, 2010, 10:37:40 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/src/core/visual_core.cpp

    r148 r151  
    4343        }
    4444
    45 xmlDoc* tmpDoc;
    46 util::getModuleXMLConfig( configFilename, "core", tmpDoc );
    47 if(tmpDoc)
    48 {
    49         xmlFreeDoc(tmpDoc); xmlCleanupParser();
    50 }
    51 
    52 
    5345        // Configure osg to use KdTrees
    5446        osgDB::Registry::instance()->setBuildKdTreesHint(osgDB::ReaderWriter::Options::BUILD_KDTREES);
     
    7971#ifdef USE_DISTORTION
    8072        // Initialize distortion
    81         OSG_NOTIFY( osg::ALWAYS ) << "Using distortion." << std::endl;
    8273        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() );
    8575#endif
    8676
Note: See TracChangeset for help on using the changeset viewer.