summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-12-18 17:06:42 +0100
committerSven Gothel <[email protected]>2011-12-18 17:06:42 +0100
commit8fc2136686abeaeba42e2210ae09b509fde40cb5 (patch)
tree23a457b66a4993196c9b316b4f0e56ebd5614894 /src/jogl/classes/javax/media/opengl
parenta6352f398fe22ffb7680cedd77cf93ed6b701c7b (diff)
CgDynamicLibraryBundleInfo: Add TempJarCache usage for atomic native jar (of atomic java JAR)
- GLProfile, NWJNILibLoader, NEWTJNILibLoader: Issue Platform.initSingleton() upfront within priviledge block.
Diffstat (limited to 'src/jogl/classes/javax/media/opengl')
-rw-r--r--src/jogl/classes/javax/media/opengl/GLProfile.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLProfile.java b/src/jogl/classes/javax/media/opengl/GLProfile.java
index d52fbcd16..6b39fe765 100644
--- a/src/jogl/classes/javax/media/opengl/GLProfile.java
+++ b/src/jogl/classes/javax/media/opengl/GLProfile.java
@@ -116,12 +116,13 @@ public class GLProfile {
System.err.println("GLProfile.initSingleton(firstUIActionOnProcess: "+firstUIActionOnProcess+") - thread "+Thread.currentThread().getName());
Thread.dumpStack();
}
- Platform.initSingleton();
// run the whole static initialization privileged to speed up,
// since this skips checking further access
AccessController.doPrivileged(new PrivilegedAction<Object>() {
public Object run() {
+ Platform.initSingleton();
+
if(TempJarCache.isInitialized()) {
String[] atomicNativeJarBaseNames = new String[] { "nativewindow", "jogl", null };
if( ReflectionUtil.isClassAvailable("com.jogamp.newt.NewtFactory", GLProfile.class.getClassLoader()) ) {