diff options
Diffstat (limited to 'src/classes/javax/media/opengl/util/BufferUtil.java.javame_cdc_fp')
-rwxr-xr-x | src/classes/javax/media/opengl/util/BufferUtil.java.javame_cdc_fp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/classes/javax/media/opengl/util/BufferUtil.java.javame_cdc_fp b/src/classes/javax/media/opengl/util/BufferUtil.java.javame_cdc_fp index 97d54b932..3ead1a4e9 100755 --- a/src/classes/javax/media/opengl/util/BufferUtil.java.javame_cdc_fp +++ b/src/classes/javax/media/opengl/util/BufferUtil.java.javame_cdc_fp @@ -229,18 +229,7 @@ public class BufferUtil { return dest; } - //---------------------------------------------------------------------- - // Internals only below this point - // - - // NOTE that this work must be done reflectively at the present time - // because this code must compile and run correctly on both CDC/FP and J2SE - private static boolean isCDCFP; - private static Class byteOrderClass; - private static Object nativeOrderObject; - private static Method orderMethod; - - private static void nativeOrder(ByteBuffer buf) { + public static ByteBuffer nativeOrder(ByteBuffer buf) { if (!isCDCFP) { try { if (byteOrderClass == null) { @@ -261,5 +250,18 @@ public class BufferUtil { } } } + return buf; } + + //---------------------------------------------------------------------- + // Internals only below this point + // + + // NOTE that this work must be done reflectively at the present time + // because this code must compile and run correctly on both CDC/FP and J2SE + private static boolean isCDCFP; + private static Class byteOrderClass; + private static Object nativeOrderObject; + private static Method orderMethod; + } |