I have a greyscale font, black background, white writing. I want to mask out the black and only display the white.
When calling :
gluBuild2DMipmaps(GL_TEXTURE_2D,1,a_Image.GetWidth(),a_Image.GetHeight(), GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, (unsigned char*)a_Image.GetData());
This causes an exception. However, when I call the same thing with GL_LUMINANCE replacing GL_LUMINANCE_ALPHA I get the correct texture, with a black background.
Anyone guess I’m doing wrong