[SDL] Problems with text rendering using TTF

Peter Mulholland darkmatter at freeuk.com
Sun Dec 3 14:32:30 PST 2006


Hello Nuno,

Sunday, December 3, 2006, 9:20:45 PM, you wrote:

> Hi,

> 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);
<snip>

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.

-- 
Best regards,
 Peter                            mailto:darkmatter at freeuk.com





More information about the SDL mailing list