From a3c243f2669e98ef132d4203e9440cc23e26920f Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 4 Jan 2012 12:43:25 +0000 Subject: [PATCH] Mark NavDisplay stateSet as STATIC --- src/Instrumentation/NavDisplay.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);