diff --git a/examples/osgparticle/osgparticle.cpp b/examples/osgparticle/osgparticle.cpp index cb0e71571..e7ca2532c 100644 --- a/examples/osgparticle/osgparticle.cpp +++ b/examples/osgparticle/osgparticle.cpp @@ -17,6 +17,7 @@ */ #include +#include #include #include @@ -368,6 +369,9 @@ int main(int, char **) osg::Group *root = new osg::Group; build_world(root); + // add the stats handler + viewer.addEventHandler(new osgViewer::StatsHandler); + // add a viewport to the viewer and attach the scene graph. viewer.setSceneData(root);