Jump to content

  • Log In with Google      Sign In   
  • Create Account

chderigo

Member Since 03 May 2012
Offline Last Active May 03 2012 01:30 PM

Posts I've Made

In Topic: Bug in the freetype openGL tutorial

03 May 2012 - 01:30 PM

First of all: Thanks for this great tutorial, it really kicks ass...Posted Image love it..
(http://nehe.gamedev.net/tutorial/freetype_fonts_in_opengl/24001/)

There's another bug within this code.
a memory leak is caused by the glyph not getting freed!

bugfix: add the line

FT_Done_Glyph(glyph);


to the bottom of the "make_dlist" function.

documentation for FT_Get_Glyph says:

Note that the created FT_Glyph object must be released with FT_Done_Glyph.

PARTNERS