diff --git a/examples/osgkdtree/osgkdtree.cpp b/examples/osgkdtree/osgkdtree.cpp index ec88197fa..1e177d05e 100644 --- a/examples/osgkdtree/osgkdtree.cpp +++ b/examples/osgkdtree/osgkdtree.cpp @@ -32,6 +32,7 @@ #include #include +#include #include #include @@ -485,6 +486,10 @@ int main(int argc, char **argv) } + osgUtil::UpdateVisitor updateVisitor; + scene->accept(updateVisitor); + + osg::Timer_t start = osg::Timer::instance()->tick(); osg::KDTreeBuilder builder;