osgText::Text is not updated #2371
-
Hi. I get a lot of warnings when running the app of Warning: detected OpenGL error 'invalid enumerant' at after RenderBin::draw(..) If I delete line 227 "geode->addDrawable( geometry );" in createBackground the warnings are gone, so I think this is another problem... Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Okerstadt, text->setDataVariance(osg::Object::DYNAMIC); As for why the demo doesn't do that... probably because it's an ancient demo that was never updated when this became a requirement. |
Beta Was this translation helpful? Give feedback.
Okerstadt,
If you're going to change
osgText::Text
after creation, you have to give it a dynamic data variance:text->setDataVariance(osg::Object::DYNAMIC);
As for why the demo doesn't do that... probably because it's an ancient demo that was never updated when this became a requirement.
Hope this helps :)