diff options
Diffstat (limited to 'src/net/java/games/jogl')
-rw-r--r-- | src/net/java/games/jogl/impl/NativeLibLoader.java | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/net/java/games/jogl/impl/NativeLibLoader.java b/src/net/java/games/jogl/impl/NativeLibLoader.java index 87a03be4f..4c944413a 100644 --- a/src/net/java/games/jogl/impl/NativeLibLoader.java +++ b/src/net/java/games/jogl/impl/NativeLibLoader.java @@ -39,13 +39,20 @@ package net.java.games.jogl.impl; +import java.security.*; + public class NativeLibLoader { static { - boolean isOSX = System.getProperty("os.name").equals("Mac OS X"); - if (!isOSX) { - System.loadLibrary("jawt"); - } - System.loadLibrary("jogl"); + AccessController.doPrivileged(new PrivilegedAction() { + public Object run() { + boolean isOSX = System.getProperty("os.name").equals("Mac OS X"); + if (!isOSX) { + System.loadLibrary("jawt"); + } + System.loadLibrary("jogl"); + return null; + } + }); } public static void load() { |