From 8e0ddfedd2e200e3ef4d9f59c031f8f979d231be Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 4 May 2012 05:56:41 +0200 Subject: Adapt to GlueGen commit cc76889a6fe96cffb91c9a3aa7934878c0ecd97e: Use ClassLoader to find JNI native libraries --- src/com/jogamp/opencl/JOCLJNILibLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/jogamp') 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) -- cgit v1.2.3