mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 17:59:56 +00:00
Use display list to render navmesh
Slightly improves performance of massive navmesh rendering.
This commit is contained in:
parent
849f2078c1
commit
4395a92c35
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ namespace SceneUtil
|
|||
|
||||
osg::ref_ptr<osg::Geometry> geometry(new osg::Geometry);
|
||||
geometry->setStateSet(stateSet);
|
||||
geometry->setUseDisplayList(false);
|
||||
geometry->setUseDisplayList(true);
|
||||
geometry->setVertexArray(mVertices);
|
||||
geometry->setColorArray(mColors, osg::Array::BIND_PER_VERTEX);
|
||||
geometry->addPrimitiveSet(new osg::DrawArrays(mMode, 0, static_cast<int>(mVertices->size())));
|
||||
|
|
Loading…
Reference in a new issue