Show
Ignore:
Timestamp:
02/13/07 12:32:28 (7 years ago)
Author:
robert
Message:

Added setDataVariance(DYNAMIC) to the scores text entires to prevent the
DrawThreadPerContext? for crashing due to double buffering of dynamic data.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgcatch/osgcatch.cpp

    r6088 r6160  
    11541154            text->setAlignment(osgText::Text::CENTER_CENTER); 
    11551155            text->setAxisAlignment(osgText::Text::XZ_PLANE); 
     1156            text->setDataVariance(osg::Object::DYNAMIC); 
    11561157 
    11571158            geode->addDrawable(text); 
     
    12941295            text->setCharacterSize(_width.length()*0.04f); 
    12951296            text->setColor(osg::Vec4(0.0f,0.2f,0.2f,1.0f)); 
     1297            text->setDataVariance(osg::Object::DYNAMIC); 
    12961298            text->setAxisAlignment(osgText::Text::XZ_PLANE); 
    12971299 
     
    13071309            _levelText->setCharacterSize(_width.length()*0.04f); 
    13081310            _levelText->setColor(osg::Vec4(0.0f,0.2f,0.2f,1.0f)); 
     1311            _levelText->setDataVariance(osg::Object::DYNAMIC); 
    13091312            _levelText->setAxisAlignment(osgText::Text::XZ_PLANE); 
    13101313