Added classic locale setting to avoid local setting of locale affecting the GLSL code generated.

This commit is contained in:
Robert Osfield 2019-12-18 14:25:07 +00:00
parent 1747d1a17b
commit 1968f3d6e1

View File

@ -102,6 +102,7 @@ osg::StateSet* Text::createStateSet()
Font::StateSets& statesets = activeFont->getCachedStateSets();
std::stringstream ss;
ss.imbue(std::locale::classic());
ss<<std::fixed<<std::setprecision(3);
osg::StateSet::DefineList defineList;