Show
Ignore:
Timestamp:
10/03/09 11:25:23 (4 years ago)
Author:
robert
Message:

Introduced new GLBufferObject pool for managing the memory footprint taken up by VertexBufferObejct?, ElementBufferObject? and PixelBufferObject?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/CompositeViewer.cpp

    r10588 r10601  
    542542 
    543543    unsigned int maxTexturePoolSize = osg::DisplaySettings::instance()->getMaxTexturePoolSize(); 
    544     unsigned int maxVBOPoolSize = osg::DisplaySettings::instance()->getMaxVBOPoolSize(); 
    545     unsigned int maxFBOPoolSize = osg::DisplaySettings::instance()->getMaxFBOPoolSize(); 
     544    unsigned int maxBufferObjectPoolSize = osg::DisplaySettings::instance()->getMaxBufferObjectPoolSize(); 
    546545 
    547546    for(Contexts::iterator citr = contexts.begin(); 
     
    553552        // set the pool sizes, 0 the default will result in no GL object pools. 
    554553        gc->getState()->setMaxTexturePoolSize(maxTexturePoolSize); 
    555         gc->getState()->setMaxVBOPoolSize(maxVBOPoolSize); 
    556         gc->getState()->setMaxFBOPoolSize(maxFBOPoolSize); 
     554        gc->getState()->setMaxBufferObjectPoolSize(maxBufferObjectPoolSize); 
    557555 
    558556        gc->realize();