Introduced streamlined text rendering dispatch code.

This commit is contained in:
Robert Osfield
2017-03-17 12:50:15 +00:00
parent 2cefcc8bfc
commit feb0214ddc
4 changed files with 177 additions and 1 deletions

View File

@@ -241,6 +241,12 @@ Font::Font(FontImplementation* implementation):
_texenv = new osg::TexEnv;
_stateset = new osg::StateSet;
_stateset->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
_stateset->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
_stateset->setMode(GL_BLEND, osg::StateAttribute::ON);
#if defined(OSG_GL_FIXED_FUNCTION_AVAILABLE)
_stateset->setTextureMode(0, GL_TEXTURE_2D, osg::StateAttribute::ON);
#endif
char *ptr;
if( (ptr = getenv("OSG_MAX_TEXTURE_SIZE")) != 0)