summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-05-04 05:56:41 +0200
committerSven Gothel <[email protected]>2012-05-04 05:56:41 +0200
commit8e0ddfedd2e200e3ef4d9f59c031f8f979d231be (patch)
treeca47e6bf37cb3bcad39f6f8c915691e23b3df362 /src/com/jogamp/opencl
parent20364d088bb40adc1f1af042a955b8a376986b90 (diff)
Adapt to GlueGen commit cc76889a6fe96cffb91c9a3aa7934878c0ecd97e: Use ClassLoader to find JNI native librariesv2.0-rc9
Diffstat (limited to 'src/com/jogamp/opencl')
-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)