I m using opengl3.3 core profile. Previously for loading an 8bit image, I would simply call
and it worked out fine.Code :glTexImage2D(GL_TEXTURE_2D,0,GL_INTENSITY,w,h,0,GL_LUMINANCE, GL_UNSIGNED_BYTE, pData)
I just see the latest specs and both GL_INTENSITY and GL_LUMINANCE are deprecated and thus the error bit is set in the forward compatible context. My question is what is the replacement of these? I can put my data in red/green/blue channel using GL_[RED,GREEN,BLUE] format but it comes out in colors (red/green/blue resp.). Do i need to explicity generate the other two components also with the same value and pass it using GL_RGB? or is there another alternate which accepts the single intensity value so that i dont have to replicate the two channels needlessly?