Mark NavDisplay stateSet as STATIC
This commit is contained in:
parent
23cdb0d302
commit
a3c243f266
1 changed files with 2 additions and 1 deletions
|
@ -443,7 +443,8 @@ NavDisplay::init ()
|
|||
|
||||
osg::StateSet *stateSet = _geom->getOrCreateStateSet();
|
||||
stateSet->setTextureAttributeAndModes(0, _symbolTexture.get());
|
||||
|
||||
stateSet->setDataVariance(osg::Object::STATIC);
|
||||
|
||||
// Initially allocate space for 128 quads
|
||||
_vertices = new osg::Vec2Array;
|
||||
_vertices->setDataVariance(osg::Object::DYNAMIC);
|
||||
|
|
Loading…
Add table
Reference in a new issue