Moved VBO switching code into inline methods into osg::State to speed performance

This commit is contained in:
Robert Osfield
2007-05-01 06:28:20 +00:00
parent a67111a64c
commit 40db1a8934
12 changed files with 377 additions and 79 deletions

View File

@@ -845,9 +845,10 @@ void SceneView::draw()
{
if (_camera->getNodeMask()==0) return;
if (!_initCalled) init();
osg::State* state = _renderInfo.getState();
state->initializeExtensionProcs();
if (!_initCalled) init();
// note, to support multi-pipe systems the deletion of OpenGL display list
// and texture objects is deferred until the OpenGL context is the correct