diff --git a/src/osgViewer/StatsHandler.cpp b/src/osgViewer/StatsHandler.cpp index 450c0ade6..15bb0aea6 100644 --- a/src/osgViewer/StatsHandler.cpp +++ b/src/osgViewer/StatsHandler.cpp @@ -671,6 +671,8 @@ struct BlockDrawCallback : public virtual osg::Drawable::DrawCallback } } + vertices->dirty(); + osg::DrawArrays* drawArrays = static_cast(geom->getPrimitiveSet(0)); drawArrays->setCount(vi); @@ -841,6 +843,8 @@ protected: } } + vertices->dirty(); + _curX++; GraphUpdateCallback::_frameNumber = frameNumber; @@ -929,6 +933,8 @@ struct FrameMarkerDrawCallback : public virtual osg::Drawable::DrawCallback } } + vertices->dirty(); + drawable->drawImplementation(renderInfo); }