diff options
author | Sven Gothel <[email protected]> | 2010-04-26 18:19:00 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-04-26 18:19:00 +0200 |
commit | 4c5ee8e3e3c5efc345db1520ddf545ce23a85b7f (patch) | |
tree | dbfb7471bb5eb90e84cbceca39afe3e65bc058b8 /src/java/com/jogamp/common | |
parent | 7cc445f761eae9a881172095b3aa85709f0f1f3a (diff) |
Using Buffers.isDirect(), due to Java <= 1.5 limitations
Diffstat (limited to 'src/java/com/jogamp/common')
-rw-r--r-- | src/java/com/jogamp/common/nio/PointerBuffer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/nio/PointerBuffer.java b/src/java/com/jogamp/common/nio/PointerBuffer.java index a9b1327..37ca650 100644 --- a/src/java/com/jogamp/common/nio/PointerBuffer.java +++ b/src/java/com/jogamp/common/nio/PointerBuffer.java @@ -114,7 +114,7 @@ public abstract class PointerBuffer extends AbstractLongBuffer { if(null==bb) { throw new RuntimeException("Buffer is null"); } - if(!bb.isDirect()) { + if(!Buffers.isDirect(bb)) { throw new RuntimeException("Buffer is not direct"); } long mask = Platform.is32Bit() ? 0x00000000FFFFFFFFL : 0xFFFFFFFFFFFFFFFFL ; |