Added setDataVariance(DYNAMIC) to _inputText to prevent problems when running in DrawThreadPerContext threading model.

This commit is contained in:
Robert Osfield 2007-02-13 09:27:44 +00:00
parent 3a48c95fc5
commit 3fbd958716

View File

@ -326,6 +326,7 @@ void KeyboardModel::createKeyboard()
_inputText->setDrawMode(osgText::Text::TEXT/*||osgText::Text::BOUNDINGBOX*/);
_inputText->setAlignment(osgText::Text::BASE_LINE);
_inputText->setAxisAlignment(osgText::Text::XZ_PLANE);
_inputText->setDataVariance(osg::Object::DYNAMIC);
_inputText->setText("Press some keys...");
geodeInput->addDrawable(_inputText.get());