glTextImage2D(GL_TEXTURE_2D,0, GL_RGB5_A1,w, h , 0, GL_RGBA, GL_UNSIGNED_BYTE,
the pimage data is r5-g5-b5-a1 format, alpha bit is the lowest bit,
But I found the color is wrong.
I changed pimage format to a1-r5-g5-b5 or other, but it wasn’t good either.
Did I make anything wrong ?
I use glaux to init
auxInitDisplayMode (AUX_DOUBLE | AUX_RGB | AUX_DEPTH);
I want to specify 16-bit mode, but I didn’t find it, is this the reason?
Anyone who could help me ? Thank you.