diff --git a/include/osg/BufferObject b/include/osg/BufferObject index 6192dd21f..a776dbcc8 100644 --- a/include/osg/BufferObject +++ b/include/osg/BufferObject @@ -360,7 +360,7 @@ class OSG_EXPORT GLBufferObjectManager : public GraphicsObjectManager void newFrame(osg::FrameStamp* fs); void resetStats(); void reportStats(std::ostream& out); - void recomputeStats(std::ostream& out); + void recomputeStats(std::ostream& out) const; unsigned int& getFrameNumber() { return _frameNumber; } unsigned int& getNumberFrames() { return _numFrames; } diff --git a/src/osg/BufferObject.cpp b/src/osg/BufferObject.cpp index 1ff3b793e..ed4a176ba 100644 --- a/src/osg/BufferObject.cpp +++ b/src/osg/BufferObject.cpp @@ -1018,7 +1018,7 @@ void GLBufferObjectManager::resetStats() _applyTime = 0; } -void GLBufferObjectManager::recomputeStats(std::ostream& out) +void GLBufferObjectManager::recomputeStats(std::ostream& out) const { out<<"GLBufferObjectMananger::recomputeStats()"<second.get(); + const GLBufferObjectSet* os = itr->second.get(); numObjectsInLists += os->computeNumGLBufferObjectsInList(); numActive += os->getNumOfGLBufferObjects(); numOrphans += os->getNumOrphans();