Commit 3d018d80dffa5722d263b6657cd8d8ee7a72e029

sammy 2008-05-21T16:37:54

* Fix the quad vertex order in FTBufferFont.

diff --git a/src/FTFont/FTBufferFont.cpp b/src/FTFont/FTBufferFont.cpp
index 05964c9..a9e4f33 100644
--- a/src/FTFont/FTBufferFont.cpp
+++ b/src/FTFont/FTBufferFont.cpp
@@ -185,15 +185,15 @@ inline FTPoint FTBufferFontImpl::RenderI(const T* string, const int len,
         glTexCoord2f(border / texWidth,
                      (texHeight - height + border) / texHeight);
         glVertex2f(bbox.Lower().Xf(), bbox.Upper().Yf());
-        glTexCoord2f((width - border) / texWidth,
-                     (texHeight - height + border) / texHeight);
-        glVertex2f(bbox.Upper().Xf(), bbox.Upper().Yf());
-        glTexCoord2f((width - border) / texWidth,
-                     (texHeight - border) / texHeight);
-        glVertex2f(bbox.Upper().Xf(), bbox.Lower().Yf());
         glTexCoord2f(border / texWidth,
                      (texHeight - border) / texHeight);
         glVertex2f(bbox.Lower().Xf(), bbox.Lower().Yf());
+        glTexCoord2f((width - border) / texWidth,
+                     (texHeight - border) / texHeight);
+        glVertex2f(bbox.Upper().Xf(), bbox.Lower().Yf());
+        glTexCoord2f((width - border) / texWidth,
+                     (texHeight - height + border) / texHeight);
+        glVertex2f(bbox.Upper().Xf(), bbox.Upper().Yf());
     glEnd();
 
     glPopClientAttrib();