   glReadPixels
  "ciao" from Italy, i''ve a strange problem with this function ''glReadPixels''(probably newbye problem). I try to make a screen and save it to a bitmap file, taking pixel data from frame buffer with glReadPixels(0,0,xwidth,ywidth,GL_BGR_EXT,GL_UNSIGNED_BYTE,bmpbuf);pixels are stored in bmpbuf, but color channels sometimes are not aligned, in some rows color channels lose align, so in some rows colors shift their position and i don''t know why  someone can help me ? 
  I had the same prob & got answer from www.opengl.org. Use binary mode as output, because char ''\n'' is turned into 2 chars in windows -> newline+linefeed if you use standart output (as for textfiles). Probability of outputting ''\n'' = 1/256. I guess that there are some bonus chars like eof and eot that could do the same...   ______________________________Madman ;  it works!!!!! tnx so much -> "grazie mille" (italian^^)  