From b45c57bf6cb9dd16313750d5609311f388dcf277 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 18 Dec 2010 03:34:05 +0100 Subject: NativeWindow Debug: Early stack trace info w/ thread name --- .../classes/javax/media/nativewindow/NativeWindowFactory.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/nativewindow/classes/javax/media') 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."); + 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 -- cgit v1.2.3