How do I load a grayscale bitmap?

Each pixel is one byte.
What is the correct call to glTexImage2D?

It would most likely be:

glTexImage2D(GL_TEXTURE_2D,0,GL_LUMINANCE8,width,height,0,GL_LUMINANCE,GL_UNSIGNED_BYTE,data);

Ofcourse, change parameters where necessary.

Old GLman

that did it. THANKS!