From Cedric Pinson, "I used the lod of the texture manager to track the instance, and it

seems that the number of current active texture is wrong. It's because
of the line in Texture::TextureObjectSet::flushDeletedTextureObjects

_parent->getNumberActiveTextureObjects() += numDeleted;"
This commit is contained in:
Robert Osfield
2010-08-08 15:32:58 +00:00
parent d86dab2836
commit a21a3af2bd

View File

@@ -416,7 +416,6 @@ void Texture::TextureObjectSet::flushDeletedTextureObjects(double currentTime, d
// update the number of active and orphaned TextureOjects
_parent->getNumberOrphanedTextureObjects() -= numDeleted;
_parent->getNumberActiveTextureObjects() += numDeleted;
_parent->getNumberDeleted() += numDeleted;
availableTime -= timer.elapsedTime();
@@ -524,7 +523,7 @@ Texture::TextureObject* Texture::TextureObjectSet::takeOrGenerate(Texture* textu
addToBack(to);
OSG_INFO<<"Created new TextureObject, _numOfTextureObjects "<<_numOfTextureObjects<<std::endl;
OSG_INFO<<"Created new " << this << " TextureObject, _numOfTextureObjects "<<_numOfTextureObjects<<std::endl;
return to;
}