diff options
author | Kenneth Russel <[email protected]> | 2006-04-17 08:24:48 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-04-17 08:24:48 +0000 |
commit | 081ce00eaad7568f5a651a34d0940feb5c9f9124 (patch) | |
tree | 3d7ba5cebe98f55bf2f10a7249e5c86c0ee20cfb /make/cg-common-CustomJavaCode.java | |
parent | 66035d8db744c3bebd8b4ba1979e3846fa79b24c (diff) |
Fixed Issue 215: Enhancement for NativeLibLoader
Incorporated patch largely unmodified from user s_koehler. Cleaned up
Cg library loading based on this work.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@720 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/cg-common-CustomJavaCode.java')
-rwxr-xr-x | make/cg-common-CustomJavaCode.java | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/make/cg-common-CustomJavaCode.java b/make/cg-common-CustomJavaCode.java index ba0df4ee9..63afdb65d 100755 --- a/make/cg-common-CustomJavaCode.java +++ b/make/cg-common-CustomJavaCode.java @@ -1,20 +1,5 @@ static { - AccessController.doPrivileged(new PrivilegedAction() { - public Object run() { - try { - // Workaround so that these don't need to be in the system - // path but can be referenced from java.library.path - // (this is intended to help with Webstarted applications) - System.loadLibrary("cg"); - System.loadLibrary("cgGL"); - } catch (UnsatisfiedLinkError e) { - // Consider this non-fatal - } - // Load the actual Cg binding - System.loadLibrary("jogl_cg"); - return null; - } - }); + NativeLibLoader.loadCgImpl(); } /** A convenience method which reads all available data from the InputStream and then calls cgCreateProgram. */ |