Introduced memory pool size management

This commit is contained in:
Robert Osfield
2009-09-23 13:51:20 +00:00
parent 3d75054e2c
commit d56499025b
4 changed files with 146 additions and 45 deletions

View File

@@ -849,7 +849,7 @@ bool SceneView::cullStage(const osg::Matrixd& projection,const osg::Matrixd& mod
osg::State* state = _renderInfo.getState();
if (state->getMaxTexturePoolSize()!=0)
{
osg::Texture::getTextureObjectManager(state->getContextID())->setTexturePoolSize(state->getMaxTexturePoolSize());
osg::Texture::getTextureObjectManager(state->getContextID())->setMaxTexturePoolSize(state->getMaxTexturePoolSize());
}