From 93b13c085496a745b87730459be8d1f341c227fe Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 13 Jul 2006 11:46:55 +0000 Subject: [PATCH] Fixed Statistics::reset() method to include a reset of all member variables --- include/osgUtil/Statistics | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/osgUtil/Statistics b/include/osgUtil/Statistics index 3d3025c22..2d56eb028 100644 --- a/include/osgUtil/Statistics +++ b/include/osgUtil/Statistics @@ -74,6 +74,10 @@ class Statistics : public osg::PrimitiveFunctor _primitiveCount.clear(); _currentPrimitiveFunctorMode=0; + + _primitives_count.clear(); + _total_primitives_count=0; + _number_of_vertexes=0; } void setType(statsType t) {stattype=t;}