Show
Ignore:
Timestamp:
12/09/09 14:55:10 (5 years ago)
Author:
robert
Message:

Fixed support for compiling VBO's

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgDB/DatabasePager.cpp

    r10764 r10875  
    240240        // XXX This "compiles" VBOs too, but compilation doesn't do 
    241241        // anything for VBOs, does it? 
    242         if (_dataToCompile && drawable->getUseDisplayList() && !_pager->isCompiled(drawable)) 
    243         { 
    244             // osg::notify(osg::NOTICE)<<"  Found compilable drawable"<<std::endl; 
     242        if (_dataToCompile && (drawable->getUseVertexBufferObjects() || drawable->getUseDisplayList()) && !_pager->isCompiled(drawable)) 
     243        { 
    245244            _dataToCompile->second.push_back(drawable); 
    246245        }