diff options
author | Sven Gothel <[email protected]> | 2010-12-18 03:34:05 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-12-18 03:34:05 +0100 |
commit | b45c57bf6cb9dd16313750d5609311f388dcf277 (patch) | |
tree | 2d37c248af35c7cbc6cf661bbe0cbc2e4ab979eb /src/nativewindow | |
parent | ea0d252a15e1fa26f420490e7464f69afce3a62c (diff) |
NativeWindow Debug: Early stack trace info w/ thread name
Diffstat (limited to 'src/nativewindow')
-rw-r--r-- | src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java index 860920123..5d36df6ed 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java +++ b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java @@ -49,7 +49,7 @@ import java.lang.reflect.Method; hardware-accelerated rendering using the OpenGL API. */ public abstract class NativeWindowFactory { - protected static final boolean DEBUG = Debug.debug("NativeWindow"); + protected static final boolean DEBUG; /** OpenKODE/EGL type, as retrieved with {@link #getNativeWindowType(boolean)}*/ public static final String TYPE_EGL = "EGL"; @@ -114,6 +114,11 @@ public abstract class NativeWindowFactory { static { JVMUtil.initSingleton(); + DEBUG = Debug.debug("NativeWindow"); + if(DEBUG) { + Throwable td = new Throwable(Thread.currentThread().getName()+" - Info: NativeWindowFactory.<init>"); + td.printStackTrace(); + } } static boolean initialized = false; @@ -152,8 +157,7 @@ public abstract class NativeWindowFactory { initialized = true; if(DEBUG) { - Throwable td = new Throwable("Info: NativeWindowFactory.initSingleton("+firstUIActionOnProcess+")"); - td.printStackTrace(); + System.err.println(Thread.currentThread().getName()+" - NativeWindowFactory.initSingleton("+firstUIActionOnProcess+")"); } // Gather the windowing OS first |