From 599e3eb630a59a9afbce45403c0567222e6065de Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 12 Dec 2010 07:53:37 +0100 Subject: GLProfile: initialize 1st, debug info later. Debug shall not change the startup behavior --- src/jogl/classes/javax/media/opengl/GLProfile.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/jogl/classes/javax/media/opengl/GLProfile.java b/src/jogl/classes/javax/media/opengl/GLProfile.java index c7b1e80cf..d803b8dd5 100644 --- a/src/jogl/classes/javax/media/opengl/GLProfile.java +++ b/src/jogl/classes/javax/media/opengl/GLProfile.java @@ -1083,6 +1083,8 @@ public class GLProfile { */ private static void initProfilesForDefaultDevices(boolean firstUIActionOnProcess) { + NativeWindowFactory.initSingleton(firstUIActionOnProcess); + if(DEBUG) { System.err.println("GLProfile.init firstUIActionOnProcess: "+ firstUIActionOnProcess + ", thread: " + Thread.currentThread().getName()); @@ -1092,8 +1094,6 @@ public class GLProfile { System.err.println(JoglVersion.getInstance()); } - NativeWindowFactory.initSingleton(firstUIActionOnProcess); - ClassLoader classloader = GLProfile.class.getClassLoader(); isAWTAvailable = NativeWindowFactory.isAWTAvailable() && -- cgit v1.2.3