Problem rendering fonts in OpenGL using SDL_ttf


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:

Or see the attached file.



-------------- next part --------------
A non-text attachment was scrubbed…
Name: main.c
Type: text/x-csrc
Size: 7498 bytes
Desc: not available