Commit 37c617f2bc3f64fe8c04b506d8e71b2f7a7e93e8

henry 2002-11-23T09:02:46

Fixed PushAttrib call

diff --git a/src/FTGLOutlineFont.cpp b/src/FTGLOutlineFont.cpp
index bf19881..4db44ba 100755
--- a/src/FTGLOutlineFont.cpp
+++ b/src/FTGLOutlineFont.cpp
@@ -27,7 +27,7 @@ FTGlyph* FTGLOutlineFont::MakeGlyph( unsigned int g)
 
 void FTGLOutlineFont::render( const char* string)
 {   
-    glPushAttrib( GL_ENABLE_BIT | GL_HINT_BIT | GL_LINE_BIT | GL_PIXEL_MODE_BIT);
+    glPushAttrib( GL_ENABLE_BIT | GL_HINT_BIT | GL_LINE_BIT | GL_COLOR_BUFFER_BIT);
     
     glDisable( GL_TEXTURE_2D);
     
@@ -45,7 +45,7 @@ void FTGLOutlineFont::render( const char* string)
 
 void FTGLOutlineFont::render( const wchar_t* string)
 {   
-    glPushAttrib( GL_ENABLE_BIT | GL_HINT_BIT | GL_LINE_BIT | GL_PIXEL_MODE_BIT);
+    glPushAttrib( GL_ENABLE_BIT | GL_HINT_BIT | GL_LINE_BIT | GL_COLOR_BUFFER_BIT);
     
     glDisable( GL_TEXTURE_2D);
     
diff --git a/src/FTGLPixmapFont.cpp b/src/FTGLPixmapFont.cpp
index 310075d..071bc48 100755
--- a/src/FTGLPixmapFont.cpp
+++ b/src/FTGLPixmapFont.cpp
@@ -27,7 +27,7 @@ FTGlyph* FTGLPixmapFont::MakeGlyph( unsigned int g)
 
 void FTGLPixmapFont::render( const char* string)
 {   
-    glPushAttrib( GL_ENABLE_BIT | GL_PIXEL_MODE_BIT);
+    glPushAttrib( GL_ENABLE_BIT | GL_PIXEL_MODE_BIT | GL_COLOR_BUFFER_BIT);
 
     glEnable(GL_BLEND);
     glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
@@ -43,7 +43,7 @@ void FTGLPixmapFont::render( const char* string)
 
 void FTGLPixmapFont::render( const wchar_t* string)
 {   
-    glPushAttrib( GL_ENABLE_BIT | GL_PIXEL_MODE_BIT);
+    glPushAttrib( GL_ENABLE_BIT | GL_PIXEL_MODE_BIT | GL_COLOR_BUFFER_BIT);
     glPushClientAttrib( GL_CLIENT_PIXEL_STORE_BIT);
         
     glEnable(GL_BLEND);
diff --git a/src/FTGLTextureFont.cpp b/src/FTGLTextureFont.cpp
index 400349f..1a2c223 100755
--- a/src/FTGLTextureFont.cpp
+++ b/src/FTGLTextureFont.cpp
@@ -148,7 +148,7 @@ int FTGLTextureFont::CreateTexture()
 
 void FTGLTextureFont::render( const char* string)
 {   
-    glPushAttrib( GL_ENABLE_BIT | GL_HINT_BIT | GL_LINE_BIT | GL_PIXEL_MODE_BIT);
+    glPushAttrib( GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT);
     
     glEnable(GL_BLEND);
     glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // GL_ONE
@@ -161,7 +161,7 @@ void FTGLTextureFont::render( const char* string)
 
 void FTGLTextureFont::render( const wchar_t* string)
 {   
-    glPushAttrib( GL_ENABLE_BIT | GL_HINT_BIT | GL_LINE_BIT | GL_PIXEL_MODE_BIT);
+    glPushAttrib( GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT);
     
     glEnable(GL_BLEND);
     glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // GL_ONE