diff --git a/src/osgText/Text.cpp b/src/osgText/Text.cpp index 54cd841c1..8e213d15c 100644 --- a/src/osgText/Text.cpp +++ b/src/osgText/Text.cpp @@ -66,6 +66,7 @@ Text::~Text() } #include +#include osg::StateSet* Text::createStateSet() { @@ -75,6 +76,8 @@ osg::StateSet* Text::createStateSet() Font::StateSets& statesets = activeFont->getCachedStateSets(); std::stringstream ss; + ss<getGlyphTextureFeatures()!=GlyphTexture::GREYSCALE) { + ss<getTextureWidthHint(); + ss << float(activeFont->getTextureWidthHint()); defineList["TEXTURE_DIMENSION"] = osg::StateSet::DefinePair(ss.str(), osg::StateAttribute::ON); defineList["SIGNED_DISTNACE_FIELD"] = osg::StateSet::DefinePair("1", osg::StateAttribute::ON);