Problem rendering fonts in OpenGL using SDL_ttf

Hello,

I have been hacking at the glfont.c example file in order to improve
performance by pre-caching the ogl textures. As it stands right now it
seems to render ‘i’ and ‘l’ correctly but all other glyphs show up as
white or gray rectangles. Any help you might be able to offer would be
greatly appreciated.

Here is the nice color coded version:

http://paste.lisp.org/display/29373

Or see the attached file.

Thanks,

Sam

-------------- next part --------------
A non-text attachment was scrubbed…
Name: main.c
Type: text/x-csrc
Size: 7498 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20061106/dcf29625/attachment.c