PDA

View Full Version : opengl 3.3 and glTexImage2D



lobbel
07-11-2010, 02:40 PM
Hello,
according to the opengl 3.2 api quick reference card,
texture formats GL_LUMINANCEn have been removed. So
I set instead GL_INTENSITY. But when I call glTexImage2D
I get the error (1280 - INVALID_ENUM).

My settings are
glTexImage2D(GL_TEXTURE_2D, 0, GL_INTENSITY8, width,height,0, GL_INTENSITY, GL_UNSIGNED_BYTE, dataPtr);

So, where is the problem ?

regards,
lobbel

Ilian Dinev
07-11-2010, 02:44 PM
GL_RED8 GL_R8,
GL_RED

lobbel
07-11-2010, 03:02 PM
thanks, it works.
But I wonder why GL_INTENSITY is not working.
It's not marked as depricated or not supported.

regards,
lobbel