From e07ad0d729be92703df9726fac16162bfdb785d3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 22 Feb 2012 03:54:36 +0100 Subject: GraphicsConfigurationFactory: Add DEBUG dump @ chooser --- .../jogamp/nativewindow/x11/X11GraphicsConfigurationFactory.java | 7 ++++++- .../nativewindow/x11/awt/X11AWTGraphicsConfigurationFactory.java | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/nativewindow/classes') diff --git a/src/nativewindow/classes/jogamp/nativewindow/x11/X11GraphicsConfigurationFactory.java b/src/nativewindow/classes/jogamp/nativewindow/x11/X11GraphicsConfigurationFactory.java index 268416266..490290654 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/x11/X11GraphicsConfigurationFactory.java +++ b/src/nativewindow/classes/jogamp/nativewindow/x11/X11GraphicsConfigurationFactory.java @@ -56,7 +56,12 @@ public class X11GraphicsConfigurationFactory extends GraphicsConfigurationFactor if(!(screen instanceof X11GraphicsScreen)) { throw new NativeWindowException("Only valid X11GraphicsScreen are allowed"); } - return new X11GraphicsConfiguration((X11GraphicsScreen)screen, capsChosen, capsRequested, getXVisualInfo(screen, capsChosen)); + AbstractGraphicsConfiguration res = new X11GraphicsConfiguration((X11GraphicsScreen)screen, capsChosen, capsRequested, getXVisualInfo(screen, capsChosen)); + if(DEBUG) { + System.err.println("X11GraphicsConfigurationFactory.chooseGraphicsConfigurationImpl("+screen+","+capsChosen+"): "+res); + Thread.dumpStack(); + } + return res; } public static XVisualInfo getXVisualInfo(AbstractGraphicsScreen screen, long visualID) diff --git a/src/nativewindow/classes/jogamp/nativewindow/x11/awt/X11AWTGraphicsConfigurationFactory.java b/src/nativewindow/classes/jogamp/nativewindow/x11/awt/X11AWTGraphicsConfigurationFactory.java index efaf4728c..c5fe7b0df 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/x11/awt/X11AWTGraphicsConfigurationFactory.java +++ b/src/nativewindow/classes/jogamp/nativewindow/x11/awt/X11AWTGraphicsConfigurationFactory.java @@ -125,6 +125,7 @@ public class X11AWTGraphicsConfigurationFactory extends GraphicsConfigurationFac } if(DEBUG) { System.err.println("X11AWTGraphicsConfigurationFactory: chosen x11Config: "+x11Config); + Thread.dumpStack(); } // -- cgit v1.2.3