glPixelMap problem

Hey.
I know glPixelMap is an uncommon gl call, so anyone who has experience with this call, please offer some insight here.

The short of what appears to be a JOGL bug it is that when I make calls to glPixelMapuiv with the parameters GL_PIXEL_MAP_I_TO_R, GL_PIXEL_MAP_I_TO_G, GL_PIXEL_MAP_I_TO_B and GL_PIXEL_MAP_I_TO_A the ints in values appear to have the wrong endianness, or possibly gl seems to be looking at the wrong end of my int.

Since I’m only concerned with 8 bits for every int (there is no byte-paramerter version of the call), the fix I’ve adopted is to bit-shift every int in the values array left by 24 bits, prior to the call. This seems to me, like a very odd or at the very least, badly documented thing to have to do.

Am I missing something with configuration or have I found a bug?

Beuler?

Beuler?

Beuler?

Beuler?

Anyone?

Are you using the version which takes an int[] or an IntBuffer? If an IntBuffer, are you sure you constructed the underlying ByteBuffer with native byte order?

JOGL doesn’t perform any translation of the data on the way down to OpenGL.

It was the version using int[].
(This app hasen’t switched to jogl 1.1 yet).