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