1
0
Fork 0

Mark NavDisplay stateSet as STATIC

This commit is contained in:
James Turner 2012-01-04 12:43:25 +00:00
parent 23cdb0d302
commit a3c243f266

View file

@ -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);