diff options
author | Ton Roosendaal <ton@blender.org> | 2005-09-26 22:47:50 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-09-26 22:47:50 +0400 |
commit | d8fe530797e3e00f7d4a0d22b4f35fb2518b92fc (patch) | |
tree | fe7be7ca9a31ed19451f6bd619761a2927b517e0 | |
parent | 4e854b1a5c6b56c280a04fc14047da39c0b61eac (diff) |
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. :)
-rwxr-xr-x | extern/bFTGL/src/FTGLTextureFont.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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(); } |