On Wed, Dec 2, 2009 at 1:17 PM, Trajce Nikolov <[email protected]> wrote:
> Here is the code snippet
> osg::ref_ptr<osg::Texture::TextureObjectManager>& tom =
> osg::Texture::getTextureObjectManager(0);
> unsigned int n1 = tom->getNumberActiveTextureObjects();
> unsigned int n2 = tom->getNumberOrphanedTextureObjects();
> tom->deleteAllTextureObjects();
> n1 = tom->getNumberActiveTextureObjects();
> n2 = tom->getNumberOrphanedTextureObjects();
> n1 hasnt changed. Any clue ?

A bug :-)

It looks like the discard of the texture objects isn't updating the
texture object manager's counts correctly.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to