diff options
author | Sven Gothel <[email protected]> | 2011-12-13 02:30:47 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-12-13 02:30:47 +0100 |
commit | 84f50c99cf125e906555acd11e9375d693978d86 (patch) | |
tree | 6c3a918f5e53c9e6a2a9b879cae9959bd90c360c /src/newt/classes | |
parent | 567bc6a7266ca782051e052b8bab732fc8f92671 (diff) |
Fix GLDrawableFactory lack of GLProfile initialization in case get*Factory() is called 1st, add tests. Add performance numbers of init/shutdown in tests.
Diffstat (limited to 'src/newt/classes')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/NewtFactory.java | 1 | ||||
-rw-r--r-- | src/newt/classes/com/jogamp/newt/util/MainThread.java | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/src/newt/classes/com/jogamp/newt/NewtFactory.java b/src/newt/classes/com/jogamp/newt/NewtFactory.java index cb1da37c7..4e6fa1aa5 100644 --- a/src/newt/classes/com/jogamp/newt/NewtFactory.java +++ b/src/newt/classes/com/jogamp/newt/NewtFactory.java @@ -54,7 +54,6 @@ public class NewtFactory { // Work-around for initialization order problems on Mac OS X // between native Newt and (apparently) Fmod static { - Platform.initSingleton(); NativeWindowFactory.initSingleton(false); // last resort .. WindowImpl.init(NativeWindowFactory.getNativeWindowType(true)); } diff --git a/src/newt/classes/com/jogamp/newt/util/MainThread.java b/src/newt/classes/com/jogamp/newt/util/MainThread.java index b1862834c..e71ef75ec 100644 --- a/src/newt/classes/com/jogamp/newt/util/MainThread.java +++ b/src/newt/classes/com/jogamp/newt/util/MainThread.java @@ -102,7 +102,6 @@ public class MainThread { static { final AccessControlContext localACC = AccessController.getContext(); - Platform.initSingleton(); NativeWindowFactory.initSingleton(true); NEWTJNILibLoader.loadNEWT(); HINT_USE_MAIN_THREAD = !NativeWindowFactory.isAWTAvailable() || |