The code added to fix RT-21740 assumes a little-endian architecture. We should throw an exception from the ES2 pipeline initialization code if we encounter a big-endian byte order until such time as we are ready to deal with it. Something like
if (ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN) {
throw new UnsupportedOperationException("...");
}
if (ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN) {
throw new UnsupportedOperationException("...");
}
- relates to
-
JDK-8102203 ES2RTTexture.readPixels allocates new byte buffer for each frame
- Closed