Commit d5ec524b544de50e53e1379c0f9cf6ca079ef341

sammy 2008-04-13T09:34:19

* Fix a coordinate bug in the extrusion texture mapping.

diff --git a/src/FTExtrdGlyph.cpp b/src/FTExtrdGlyph.cpp
index 736993d..86f218b 100644
--- a/src/FTExtrdGlyph.cpp
+++ b/src/FTExtrdGlyph.cpp
@@ -137,19 +137,16 @@ FTExtrdGlyph::FTExtrdGlyph(FT_GlyphSlot glyph, float depth, bool useDisplayList)
                     glNormal3dv(static_cast<const FTGL_DOUBLE*>(normal));
                 }
 
+                glTexCoord2f(pt.X() / hscale,
+                             pt.Y() / vscale);
+
                 if(contourFlag & ft_outline_reverse_fill)
                 {
-                    glTexCoord2f(pt.X() / hscale,
-                                 pt.X() / vscale);
-                
                     glVertex3f(pt.X() / 64.0f, pt.Y() / 64.0f, 0.0f);
                     glVertex3f(pt.X() / 64.0f, pt.Y() / 64.0f, -depth);
                 }
                 else
                 {
-                    glTexCoord2f(pt.X() / hscale,
-                                 pt.Y() / vscale);
-                
                     glVertex3f(pt.X() / 64.0f, pt.Y() / 64.0f, -depth);
                     glVertex3f(pt.X() / 64.0f, pt.Y() / 64.0f, 0.0f);
                 }