From d8fe530797e3e00f7d4a0d22b4f35fb2518b92fc Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 26 Sep 2005 18:47:50 +0000 Subject: Ftgl patch for texture fonts got lost... somehow. That made them much slower than pixmap fonts. Test on buttons window CTRL+ALT+T timer shows it goes down from 2500 to 100 on this commit. :) --- extern/bFTGL/src/FTGLTextureFont.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extern') diff --git a/extern/bFTGL/src/FTGLTextureFont.cpp b/extern/bFTGL/src/FTGLTextureFont.cpp index 1712ed54779..92f14be50f2 100755 --- a/extern/bFTGL/src/FTGLTextureFont.cpp +++ b/extern/bFTGL/src/FTGLTextureFont.cpp @@ -153,26 +153,26 @@ bool FTGLTextureFont::FaceSize( const unsigned int size, const unsigned int res) void FTGLTextureFont::Render( const char* string) { - glPushAttrib( GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT); +// glPushAttrib( GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT); glEnable(GL_BLEND); glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // GL_ONE FTFont::Render( string); - glPopAttrib(); +// glPopAttrib(); } void FTGLTextureFont::Render( const wchar_t* string) { - glPushAttrib( GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT); +// glPushAttrib( GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT); glEnable(GL_BLEND); glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // GL_ONE FTFont::Render( string); - glPopAttrib(); +// glPopAttrib(); } -- cgit v1.2.3