aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/jogamp/opencl/JOCLJNILibLoader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/JOCLJNILibLoader.java b/src/com/jogamp/opencl/JOCLJNILibLoader.java
index de100d3c..73c42d2d 100644
--- a/src/com/jogamp/opencl/JOCLJNILibLoader.java
+++ b/src/com/jogamp/opencl/JOCLJNILibLoader.java
@@ -58,7 +58,7 @@ class JOCLJNILibLoader extends JNILibLoaderBase {
if(TempJarCache.isInitialized() && null == TempJarCache.findLibrary(libName)) {
addNativeJarLibs(JOCLJNILibLoader.class, "jocl", null );
}
- loadLibrary(libName, false);
+ loadLibrary(libName, false, JOCLJNILibLoader.class.getClassLoader());
NativeLibrary res = NativeLibrary.open("OpenCL", JOCLJNILibLoader.class.getClassLoader());
if(null == res) {
// try unix name w/ version (eg.: AMD has a /usr/lib32/fglrx/libOpenCL.so.1 only)