Fixed method to match parent class.
This commit is contained in:
parent
09bad85522
commit
d038866649
@ -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; }
|
||||
|
@ -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()"<<std::endl;
|
||||
unsigned int numObjectsInLists = 0;
|
||||
@ -1026,11 +1026,11 @@ void GLBufferObjectManager::recomputeStats(std::ostream& out)
|
||||
unsigned int numOrphans = 0;
|
||||
unsigned int numPendingOrphans = 0;
|
||||
unsigned int currentSize = 0;
|
||||
for(GLBufferObjectSetMap::iterator itr = _glBufferObjectSetMap.begin();
|
||||
for(GLBufferObjectSetMap::const_iterator itr = _glBufferObjectSetMap.begin();
|
||||
itr != _glBufferObjectSetMap.end();
|
||||
++itr)
|
||||
{
|
||||
GLBufferObjectSet* os = itr->second.get();
|
||||
const GLBufferObjectSet* os = itr->second.get();
|
||||
numObjectsInLists += os->computeNumGLBufferObjectsInList();
|
||||
numActive += os->getNumOfGLBufferObjects();
|
||||
numOrphans += os->getNumOrphans();
|
||||
|
Loading…
Reference in New Issue
Block a user