Added TexEnv object into Font and apply this in Text::drawImplementation to make
sure that a valid TexEnv is applied
This commit is contained in:
@@ -142,9 +142,8 @@ Font::Font(FontImplementation* implementation):
|
||||
{
|
||||
setImplementation(implementation);
|
||||
|
||||
_texenv = new osg::TexEnv;
|
||||
_stateset = new osg::StateSet;
|
||||
//_stateset->setMode(GL_BLEND,osg::StateAttribute::ON);
|
||||
//_stateset->setTextureMode(0,GL_TEXTURE_2D,osg::StateAttribute::ON);
|
||||
_stateset->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user