Updates to the GLUT and Producer text demo.

Fix to text to better handle unsetting of vertex arrays.
This commit is contained in:
Robert Osfield
2003-03-05 12:28:42 +00:00
parent 7cc69d4d66
commit 8e6a1d38e4
4 changed files with 627 additions and 348 deletions

View File

@@ -129,6 +129,7 @@ void Font::addGlyph(unsigned int width, unsigned int height, unsigned int charco
glyphTexture->setStateSet(stateset);
stateset->setMode(GL_BLEND,osg::StateAttribute::ON);
stateset->setTextureAttributeAndModes(0,glyphTexture,osg::StateAttribute::ON);
stateset->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
if (!glyphTexture->getSpaceForGlyph(glyph,posX,posY))
{