Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-09-26 22:47:50 +0400
committerTon Roosendaal <ton@blender.org>2005-09-26 22:47:50 +0400
commitd8fe530797e3e00f7d4a0d22b4f35fb2518b92fc (patch)
treefe7be7ca9a31ed19451f6bd619761a2927b517e0 /extern/bFTGL
parent4e854b1a5c6b56c280a04fc14047da39c0b61eac (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. :)
Diffstat (limited to 'extern/bFTGL')
-rwxr-xr-xextern/bFTGL/src/FTGLTextureFont.cpp8
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();
}