Commit 12dc1b94445ab991ef3ae99f07cb203307ae38d1

henry 2002-11-21T06:26:13

Added glPixelStorei call to fix corrupt glyphs

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/FTTextureGlyph.cpp b/src/FTTextureGlyph.cpp
index b4ffd2b..9822308 100755
--- a/src/FTTextureGlyph.cpp
+++ b/src/FTTextureGlyph.cpp
@@ -27,6 +27,7 @@ FTTextureGlyph::FTTextureGlyph( FT_Glyph glyph, int id, int xOffset, int yOffset
     
     if( destWidth && destHeight)
     {
+        glPixelStorei( GL_UNPACK_ROW_LENGTH, 0);
         glBindTexture( GL_TEXTURE_2D, glTextureID);
         glTexSubImage2D( GL_TEXTURE_2D, 0, xOffset, yOffset, destWidth, destHeight, GL_ALPHA, GL_UNSIGNED_BYTE, source->buffer);
     }