From 4c5ee8e3e3c5efc345db1520ddf545ce23a85b7f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 26 Apr 2010 18:19:00 +0200 Subject: Using Buffers.isDirect(), due to Java <= 1.5 limitations --- src/java/com/jogamp/common/nio/PointerBuffer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; -- cgit v1.2.3