diff options
Diffstat (limited to 'src/java')
-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 ; |