From a21a3af2bd02c14faa5521c849639153a6cf1eb6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 8 Aug 2010 15:32:58 +0000 Subject: [PATCH] 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;" --- src/osg/Texture.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/osg/Texture.cpp b/src/osg/Texture.cpp index 616f6cdea..24840a378 100644 --- a/src/osg/Texture.cpp +++ b/src/osg/Texture.cpp @@ -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<