[SDL] Problems with text rendering using TTF
darkmatter at freeuk.com
Sun Dec 3 14:32:30 PST 2006
Sunday, December 3, 2006, 9:20:45 PM, you wrote:
> This is how i define the list:
> glNewList(images[i] = glGenLists(1), GL_COMPILE);
Very bad. What if glGenLists() fails ? You will cause a crash.
> glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
You aren't doing any polygon rendering here - this is what display
lists are for. The GL driver will most likely see that you have done
no rendering work, and won't have compiled anything.
Peter mailto:darkmatter at freeuk.com
More information about the SDL