diff --git a/examples/osgspheresegment/osgspheresegment.cpp b/examples/osgspheresegment/osgspheresegment.cpp index d61000f15..b818d8b11 100644 --- a/examples/osgspheresegment/osgspheresegment.cpp +++ b/examples/osgspheresegment/osgspheresegment.cpp @@ -17,6 +17,7 @@ */ #include +#include #include #include @@ -714,6 +715,9 @@ int main(int argc, char **argv) osg::Group *root = new osg::Group; build_world(root, testCase, useOverlay, technique); + + viewer.addEventHandler(new osgViewer::StatsHandler); + // add a viewport to the viewer and attach the scene graph. viewer.setSceneData(root);