glGenTextures() returns 0??

I’ve been using glGenTextures(1, &some_unsigned_int), and it keeps returning 0, which the Red Book says

‘Zero is a reserved texrue name and is never returned as atexture name by glGenTextures().’

What does this mean?!!!

It basically means you should never use 0 as a texture name if you allocate textures on your own.

And why it always returns zero, I don’t know. Have you created an OpenGL context at all?

Yeah… I’ve got coloured polys rendering… just cant get textures to work…

I’ve got essentially identical tga loading routines and gl context setup code in two projects… textures work in one, and not the other! go figure!