Jay2
10-06-2003, 06:28 AM
Hi,
I am reading color data using glReadPixel. The color buffer has gray scale data so r=g=b for each pixel. When I read just one channel data for example, red channel only, the pixel values are inverted. If I read all rgb, it is OK. Why is this?
glReadPixels(..., GL_RED,...)--> inverted!
glReadPixels(..., GL_RGB,...)--> OK.
I am reading color data using glReadPixel. The color buffer has gray scale data so r=g=b for each pixel. When I read just one channel data for example, red channel only, the pixel values are inverted. If I read all rgb, it is OK. Why is this?
glReadPixels(..., GL_RED,...)--> inverted!
glReadPixels(..., GL_RGB,...)--> OK.