Skip to content

Commit

Permalink
Added classic locale setting to avoid local setting of locale affecti…
Browse files Browse the repository at this point in the history
…ng the GLSL code generated.
  • Loading branch information
robertosfield committed Dec 18, 2019
1 parent 1747d1a commit 1968f3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/osgText/Text.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 1968f3d

Please sign in to comment.