aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/nio
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-20 04:58:01 +0200
committerSven Gothel <[email protected]>2011-09-20 04:58:01 +0200
commitb12fe7f98a9b523129c310d46698f430d17a8138 (patch)
tree9579477c1e7ecc65062e714c5957bba8e0b23b21 /src/java/com/jogamp/common/nio
parentf357a00e511f0049865392adecc4d042663da6e6 (diff)
Remove redundant: NativeLibrary.ensureNativeLibLoaded()
Diffstat (limited to 'src/java/com/jogamp/common/nio')
-rw-r--r--src/java/com/jogamp/common/nio/AbstractBuffer.java3
-rw-r--r--src/java/com/jogamp/common/nio/PointerBuffer.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/nio/AbstractBuffer.java b/src/java/com/jogamp/common/nio/AbstractBuffer.java
index 58bab65..1d99767 100644
--- a/src/java/com/jogamp/common/nio/AbstractBuffer.java
+++ b/src/java/com/jogamp/common/nio/AbstractBuffer.java
@@ -32,6 +32,7 @@
package com.jogamp.common.nio;
import com.jogamp.common.os.*;
+import com.jogamp.gluegen.runtime.NativeLibLoader;
import java.nio.Buffer;
import java.nio.ByteBuffer;
@@ -48,7 +49,7 @@ public abstract class AbstractBuffer<B extends AbstractBuffer> implements Native
protected int position;
static {
- NativeLibrary.ensureNativeLibLoaded();
+ NativeLibLoader.loadGlueGenRT();
}
/**
diff --git a/src/java/com/jogamp/common/nio/PointerBuffer.java b/src/java/com/jogamp/common/nio/PointerBuffer.java
index 089b8b1..27a0bc6 100644
--- a/src/java/com/jogamp/common/nio/PointerBuffer.java
+++ b/src/java/com/jogamp/common/nio/PointerBuffer.java
@@ -39,6 +39,7 @@ import java.nio.LongBuffer;
import com.jogamp.common.os.NativeLibrary;
import com.jogamp.common.os.Platform;
import com.jogamp.common.util.LongObjectHashMap;
+import com.jogamp.gluegen.runtime.NativeLibLoader;
/**
* Hardware independent container for native pointer arrays.
@@ -54,7 +55,7 @@ public class PointerBuffer extends AbstractBuffer<PointerBuffer> {
protected LongObjectHashMap dataMap = null;
static {
- NativeLibrary.ensureNativeLibLoaded();
+ NativeLibLoader.loadGlueGenRT();
}
/** no backup array, use for direct usage only */