diff --git a/examples/osglogo/osglogo.cpp b/examples/osglogo/osglogo.cpp index c07ae3d40..18699462d 100644 --- a/examples/osglogo/osglogo.cpp +++ b/examples/osglogo/osglogo.cpp @@ -33,6 +33,7 @@ #include #include +#include #include @@ -464,6 +465,9 @@ int main( int argc, char **argv ) // construct the viewer. osgViewer::Viewer viewer; + // add the state manipulator + viewer.addEventHandler( new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()) ); + // if user request help write it out to cout. if (arguments.read("-h") || arguments.read("--help")) {