Moved VBO switching code into inline methods into osg::State to speed performance
This commit is contained in:
@@ -940,6 +940,8 @@ struct ViewerCompileOperation : public osg::Operation
|
||||
// osg::notify(osg::NOTICE)<<"Compile "<<context<<" "<<OpenThreads::Thread::CurrentThread()<<std::endl;
|
||||
|
||||
// context->makeCurrent();
|
||||
|
||||
context->getState()->initializeExtensionProcs();
|
||||
|
||||
osgUtil::GLObjectsVisitor compileVisitor;
|
||||
compileVisitor.setState(context->getState());
|
||||
|
||||
Reference in New Issue
Block a user