Forced GLPixmapGlyph color to white rather than using glGetCurrentColor

This commit is contained in:
Don BURNS
2002-11-24 00:23:47 +00:00
parent 1098a7ded1
commit 89b2575ffe
3 changed files with 10 additions and 5 deletions

View File

@@ -42,13 +42,13 @@ void FTGLPixmapFont::render( const char* string,unsigned int renderContext)
{
glPushAttrib( GL_ENABLE_BIT | GL_PIXEL_MODE_BIT);
// Why is this modifying state here? - DB
glEnable(GL_BLEND);
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
FTFont::render( string,renderContext);
glPopAttrib();
}
@@ -56,6 +56,7 @@ void FTGLPixmapFont::render( const wchar_t* string,unsigned int renderContext)
{
glPushAttrib( GL_ENABLE_BIT | GL_PIXEL_MODE_BIT);
// Why is this modifying state here? - DB
glEnable(GL_BLEND);
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);