- Timestamp:
- 02/27/08 12:43:58 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgocclusionquery/osgocclusionquery.cpp
r7754 r7889 265 265 osg::ref_ptr<osg::OcclusionQueryNode> oqn = new osg::OcclusionQueryNode; 266 266 267 osg::StateSet* ss( NULL ); 268 osg::StateSet* ssDebug( NULL ); 269 oqn->getQueryStateSets( ss, ssDebug ); 270 _state = ss; 271 _debugState = ssDebug; 267 _state = oqn->getQueryStateSet(); 268 _debugState = oqn->getDebugStateSet(); 272 269 } 273 270 … … 355 352 // Set all OQNs to use the same query StateSets (instead of multiple copies 356 353 // of the same StateSet) for efficiency. 357 oqn->setQueryStateSets( _state.get(), _debugState.get() ); 354 oqn->setQueryStateSet( _state.get() ); 355 oqn->setDebugStateSet( _debugState.get() ); 358 356 } 359 357 }
