[osg-users] incorrectly imported TEXTURE_DIMENSION macro in osgText_Text.frag

Robert Osfield robert.osfield at gmail.com
Wed Dec 18 03:14:15 PST 2019


Hi Cory,

Looking at osgText there following line (152,
OpenSceneGraph/src/osgText/Text.cpp sets up the TEXTURE_DIMENSION:

        ss.str("");
        ss << float(activeFont->getTextureWidthHint());
        defineList["TEXTURE_DIMENSION"] =
osg::StateSet::DefinePair(ss.str(), osg::StateAttribute::ON);

Which makes me think that the std::stringstream ss used is defaulting to
your locale and then GLSL is using the standard locale.

If this is so then setting the locale on the stringstream would be the
appropriate thing to do.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20191218/8b7e8de4/attachment.html>


More information about the osg-users mailing list