Changed the default text colour to black

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14382 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2014-07-23 15:57:35 +00:00
parent 900534f86e
commit aa2c9c152f

View File

@ -228,11 +228,14 @@ osg::Node* Style::createText(const osg::BoundingBox& extents, const AlignmentSet
{
// OSG_NOTICE<<"createText"<<std::endl;
osg::Vec4 textColor(0.0f,0.0,0.0f,1.0);
osg::ref_ptr<osgText::Text> textDrawable = new osgText::Text;
textDrawable->setName("Text");
textDrawable->setText(text);
textDrawable->setEnableDepthWrites(false);
textDrawable->setColor(textColor);
if (ts)
{