]> git.tdb.fi Git - libs/gl.git/blobdiff - source/font.cpp
Windows compatibility:
[libs/gl.git] / source / font.cpp
index 60090e0148de8e3ebc587da94f04261c4b629fe6..637569f205358a8a08edf846fbac8c55a480e7e1 100644 (file)
@@ -5,7 +5,7 @@ Copyright © 2007  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
-#include <GL/gl.h>
+#include "gl.h"
 #include "font.h"
 #include "texture2d.h"
 
@@ -105,6 +105,9 @@ void Font::draw_glyph(unsigned code) const
        if(i==glyphs.end())
                return;
 
+       const Glyph &glyph=i->second;
+       (void)glyph;
+
        glDrawArrays(GL_QUADS, i->second.index*4, 4);
 
        glTranslatef(i->second.advance, 0, 0);