Hi am having a problem with glDrawPixels that mabye some one can help me with.
If the width is not a multiple of 4 I am getting the first line(the bottom line) comming out right and then every line above that the pixels are all wrong.
An example is the following
unsigned char picture[10*3] = {0};
for(int i =0; i < 30; i++){
if(i%3==0)
picture[i] = 255;
}
glPixelZoom ( 20,20);
glDrawPixels(5,2,GL_RGB,GL_UNSIGNED_BYTE,picture);
The bottem line is read and the top line is BLUE?? Can any one help?