diff options
author | Michael Bien <[email protected]> | 2011-02-23 02:24:24 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-02-23 02:24:24 +0100 |
commit | 021bac51052da270b6cde326637c4c4251ba38aa (patch) | |
tree | 9787fc2efd5f93ca54d50fec58d9ef01e12e859b /src/java/com/jogamp | |
parent | ecd7c27d49126db37467c3616fefd56cec6bbde2 (diff) | |
parent | 96a5e82f30e01daba2cf27dcd9cdaa30992d1975 (diff) |
Merge branch 'master' of github.com:sgothel/gluegen
Diffstat (limited to 'src/java/com/jogamp')
-rwxr-xr-x | src/java/com/jogamp/common/nio/Buffers.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/nio/Buffers.java b/src/java/com/jogamp/common/nio/Buffers.java index 45cb5a6..abf6692 100755 --- a/src/java/com/jogamp/common/nio/Buffers.java +++ b/src/java/com/jogamp/common/nio/Buffers.java @@ -213,8 +213,8 @@ public class Buffers { */ public static <B extends Buffer> B slice(B buffer) { if (buffer instanceof ByteBuffer) { - ByteBuffer bb = (ByteBuffer) buffer; - return (B) bb.slice().order(bb.order()); // bb can change byte order on slice and duplicate + final ByteBuffer bb = (ByteBuffer) buffer; + return (B) bb.slice().order(bb.order()); // slice and duplicate may change byte order } else if (buffer instanceof IntBuffer) { return (B) ((IntBuffer) buffer).slice(); } else if (buffer instanceof ShortBuffer) { |