10-15-2001, 05:36 PM
Ok, this is really wierd. I'm trying to capture what is in my viewport to an RGB file by reading the pixels and then writing the data out to file. Initially I tried using reading as GL_RGBA, but I was getting a strange picture, so I read each color into a separate array (GL_RED, GL_GREEN, GL_BLUE and GL_ALPHA). But for some reason, the GL_BLUE values aren't correct when I write them out to file. The red, green and alpha are all fine, but the blue gives me this skewed picture... any clues?