summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-02-23 02:24:24 +0100
committerMichael Bien <[email protected]>2011-02-23 02:24:24 +0100
commit021bac51052da270b6cde326637c4c4251ba38aa (patch)
tree9787fc2efd5f93ca54d50fec58d9ef01e12e859b /src
parentecd7c27d49126db37467c3616fefd56cec6bbde2 (diff)
parent96a5e82f30e01daba2cf27dcd9cdaa30992d1975 (diff)
Merge branch 'master' of github.com:sgothel/gluegen
Diffstat (limited to 'src')
-rwxr-xr-xsrc/java/com/jogamp/common/nio/Buffers.java4
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) {