Show
Ignore:
Timestamp:
04/14/14 18:16:22 (9 days ago)
Author:
robert
Message:

Fixed comment

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp

    r13099 r13107  
    837837    osg::ref_ptr<osgShadow::ShadowedScene> shadowedScene = new osgShadow::ShadowedScene; 
    838838 
    839     shadowedScene->getShadowSettings()->setReceivesShadowTraversalMask(ReceivesShadowTraversalMask); 
    840     shadowedScene->getShadowSettings()->setCastsShadowTraversalMask(CastsShadowTraversalMask); 
     839    osgShadow::ShadowSettings* settings = shadowedScene->getShadowSettings(); 
     840    settings->setReceivesShadowTraversalMask(ReceivesShadowTraversalMask); 
     841    settings->setCastsShadowTraversalMask(CastsShadowTraversalMask); 
    841842 
    842843    osg::ref_ptr<osgShadow::MinimalShadowMap> msm = NULL; 
     
    919920    else if( arguments.read("--vdsm") ) 
    920921    { 
    921         osgShadow::ShadowSettings* settings = new osgShadow::ShadowSettings; 
    922         shadowedScene->setShadowSettings(settings); 
    923  
    924922        while( arguments.read("--debugHUD") ) settings->setDebugDraw( true ); 
    925923        if (arguments.read("--persp")) settings->setShadowMapProjectionHint(osgShadow::ShadowSettings::PERSPECTIVE_SHADOW_MAP);