From: James Turner Date: Wed, 4 Jan 2012 12:43:25 +0000 (+0000) Subject: Mark NavDisplay stateSet as STATIC X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a3c243f2669e98ef132d4203e9440cc23e26920f;p=flightgear.git Mark NavDisplay stateSet as STATIC --- diff --git a/src/Instrumentation/NavDisplay.cxx b/src/Instrumentation/NavDisplay.cxx index 83de81bbf..7b7e3488a 100644 --- a/src/Instrumentation/NavDisplay.cxx +++ b/src/Instrumentation/NavDisplay.cxx @@ -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);