Commit a5e3b58cc4047e3eb07edc9127d3f1fd88f0c1bb

henry 2001-11-05T21:00:30

Fixed a bug that was overunning the glyph list

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/FTGLTextureFont.cpp b/src/FTGLTextureFont.cpp
index dd10b4e..dbbed91 100755
--- a/src/FTGLTextureFont.cpp
+++ b/src/FTGLTextureFont.cpp
@@ -106,7 +106,7 @@ unsigned int FTGLTextureFont::FillGlyphs( unsigned int glyphStart, GLuint id, GL
 	
 	unsigned int n;
         
-	for( n = glyphStart; n <= numGlyphs; ++n)
+	for( n = glyphStart; n < numGlyphs; ++n)
 	{
 		FT_Glyph* ftGlyph = face.Glyph( n, FT_LOAD_NO_HINTING);