Only disable display lists if using VBOs.
(Otherwise we fall back to very slow submission)
This commit is contained in:
parent
b4f4ef9c5b
commit
3b5665fe92
@ -330,9 +330,10 @@ public:
|
||||
colors->push_back(osg::Vec4(1, 1, 1, 1));
|
||||
|
||||
osg::Geometry* geometry = new osg::Geometry;
|
||||
geometry->setUseDisplayList(false);
|
||||
if (useVBOs)
|
||||
if (useVBOs) {
|
||||
geometry->setUseDisplayList(false);
|
||||
geometry->setUseVertexBufferObjects(true);
|
||||
}
|
||||
|
||||
geometry->setDataVariance(osg::Object::STATIC);
|
||||
geometry->setVertexArray(vertices);
|
||||
|
Loading…
Reference in New Issue
Block a user