Changeset 9567
- Timestamp:
- 01/28/09 11:06:15 (4 years ago)
- Location:
- OpenSceneGraph/trunk/src/osgViewer
- Files:
-
- 2 modified
-
View.cpp (modified) (2 diffs)
-
ViewerBase.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgViewer/View.cpp
r9462 r9567 149 149 150 150 setEventQueue(new osgGA::EventQueue); 151 152 setStats(new osg::Stats("View")); 151 153 } 152 154 … … 164 166 165 167 setEventQueue(new osgGA::EventQueue); 168 169 setStats(new osg::Stats("View")); 166 170 } 167 171 -
OpenSceneGraph/trunk/src/osgViewer/ViewerBase.cpp
r9554 r9567 654 654 osg::Stats* stats = view->getStats(); 655 655 osg::Node* sceneRoot = view->getSceneData(); 656 if (sceneRoot )656 if (sceneRoot && stats) 657 657 { 658 658 osgUtil::StatsVisitor statsVisitor;
