diff --git a/src/osgPlugins/gles/StatLogger b/src/osgPlugins/gles/StatLogger index 7bc9f2e3d..047483157 100644 --- a/src/osgPlugins/gles/StatLogger +++ b/src/osgPlugins/gles/StatLogger @@ -8,7 +8,10 @@ class StatLogger { public: - StatLogger(const std::string& label): _start(getTick()), _label(label) {} + StatLogger(const std::string& label): _label(label) + { + _start = _stop = getTick(); + } ~StatLogger() { _stop = getTick(); OSG_INFO << std::flush