In all the code I've seen written in java for loading textures the image is flipped (byte-reversed?) before loading the BufferedImage's data into the direct buffer.
Is this because of different byteorder in the array returned by the Raster and the byteorder preferred by OGL? In the C versions of the tutorials there seem to be no need for this conversion. It doesn't seem to depend on imageformat. Chman's ImageLib perform this operation on all images loaded, even from bmp-source.
I would be very happy if someone could explain exactly why this is necessary in the java code!
This post is a cross-post from the josrts.org forums.