summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/JOCLJNILibLoader.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-09-01 17:16:46 +0200
committerMichael Bien <[email protected]>2010-09-01 17:16:46 +0200
commit2388b47f180989abd14a39188b1d4f80f221bdcf (patch)
treef6a34f7bb7131cc9b642ae35eba9d1113bebd3c3 /src/com/jogamp/opencl/JOCLJNILibLoader.java
parent4836f3ab7916c681450d06f118b90c31f0bcdc8c (diff)
better exception message if libOpenCL could not be loaded.
Diffstat (limited to 'src/com/jogamp/opencl/JOCLJNILibLoader.java')
-rw-r--r--src/com/jogamp/opencl/JOCLJNILibLoader.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/JOCLJNILibLoader.java b/src/com/jogamp/opencl/JOCLJNILibLoader.java
index 61436aa5..5e2eae37 100644
--- a/src/com/jogamp/opencl/JOCLJNILibLoader.java
+++ b/src/com/jogamp/opencl/JOCLJNILibLoader.java
@@ -12,9 +12,10 @@ class JOCLJNILibLoader extends JNILibLoaderBase {
/**
* Loads the native binding and returns the OpenCL library for dynamic linking.
+ * @return Returns libOpenCL represented as NativeLibrary.
*/
- static NativeLibrary loadJOCL() {
- loadLibrary("jocl", null, true);
+ static NativeLibrary loadOpenCL() {
+ loadLibrary("jocl", null, false);
return NativeLibrary.open("OpenCL", JOCLJNILibLoader.class.getClassLoader());
}
}