diff --git a/examples/osgvertexattributes/osgvertexattributes.cpp b/examples/osgvertexattributes/osgvertexattributes.cpp index 38616aa0e..1cea2014e 100644 --- a/examples/osgvertexattributes/osgvertexattributes.cpp +++ b/examples/osgvertexattributes/osgvertexattributes.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include class ConvertToVertexAttibArrays : public osg::NodeVisitor @@ -335,6 +336,9 @@ int main(int argc, char *argv[]) viewer.setCameraManipulator(new osgGA::TrackballManipulator()); + // add the stats handler + viewer.addEventHandler(new osgViewer::StatsHandler); + viewer.realize();