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 e5e5ea6239
commit c5ff9e63df

View File

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