Commit d92dc2db59779908771b1e4f9497963eb9836009

sammy 2008-04-25T10:00:07

* Turn off the color buffer bit in the TextureFont renderer to increase performance. Patch by Ton Roosendaal, from Blender commit r5362.

diff --git a/src/FTGLTextureFont.cpp b/src/FTGLTextureFont.cpp
index 8bdcb55..9b6e78f 100644
--- a/src/FTGLTextureFont.cpp
+++ b/src/FTGLTextureFont.cpp
@@ -191,17 +191,13 @@ bool FTGLTextureFont::FaceSize( const unsigned int size, const unsigned int res)
 
 template <typename T>
 inline void FTGLTextureFont::RenderI(const T* string)
-{   
-    glPushAttrib(GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT);
-    
+{
     glEnable(GL_BLEND);
     glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // GL_ONE
 
     FTTextureGlyph::ResetActiveTexture();
-    
-    FTFont::Render(string);
 
-    glPopAttrib();
+    FTFont::Render(string);
 }