Provide a different routine to allow reading pixels in top-down order

When saving screen images, readPixel reads from bottom to top, the opposite of all image file formats. In order to avoid the extra copy, it would be very convenient to support reading out pixels in the opposite order (top down).

When saving screen images, readPixel reads from bottom to top, the opposite of all image file formats.
TGA’s are bottom-up. I think BMPs are too, but I’m not certain.

In any case, you just executed a glReadPixel call; clearly, performance is not something you’re terribly concerned about.

Seconded.
Flipping images is not a hard thing to do, but ultimately a waste of bandwidth that could easily be avoided.

Quote of the day: “If we support PolygonStipple, surely we should support this.”

Quote of the day: “If we support PolygonStipple, surely we should support this.”
Grr… can’t we just remove PolygonStipple? :smiley:

It sounds like you want more drivers to support MESA_pack_invert , then. This extension does exactly that. As far as I know, only a couple open-source drivers on Linux support it, but I’m sure that if enough people bug the various IHVs about it, they’d add support. :slight_smile: