From b75d4a3718b1a5744218e19c4f5c1a9ff0311f34 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 10 Feb 2006 21:55:09 +0000 Subject: Added more debugging output on X11 side to track down Linux problems git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@596 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/com/sun/opengl/impl/x11/X11GLDrawable.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/classes/com/sun/opengl/impl/x11/X11GLDrawable.java') diff --git a/src/classes/com/sun/opengl/impl/x11/X11GLDrawable.java b/src/classes/com/sun/opengl/impl/x11/X11GLDrawable.java index 61d4a70f5..c11404b9f 100644 --- a/src/classes/com/sun/opengl/impl/x11/X11GLDrawable.java +++ b/src/classes/com/sun/opengl/impl/x11/X11GLDrawable.java @@ -104,6 +104,11 @@ public abstract class X11GLDrawable extends GLDrawableImpl { if (infos == null || infos.length == 0) { throw new GLException("Error while getting XVisualInfo for visual ID " + visualID); } + if (DEBUG) { + System.err.println("!!! Fetched XVisualInfo for visual ID 0x" + Long.toHexString(visualID)); + System.err.println("!!! Resulting XVisualInfo: visualid = 0x" + Long.toHexString(infos[0].visualid())); + } + // FIXME: the storage for the infos array is leaked (should // clean it up somehow when we're done with the visual we're // returning) -- cgit v1.2.3