aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/x11/X11GLDrawable.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-02-10 21:55:09 +0000
committerKenneth Russel <[email protected]>2006-02-10 21:55:09 +0000
commitb75d4a3718b1a5744218e19c4f5c1a9ff0311f34 (patch)
tree62aae19c178f4ea8fe2798c23096db5b999e1012 /src/classes/com/sun/opengl/impl/x11/X11GLDrawable.java
parent4b14f14cbb84c3d60d3fb501d78873c574eec6bd (diff)
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
Diffstat (limited to 'src/classes/com/sun/opengl/impl/x11/X11GLDrawable.java')
-rw-r--r--src/classes/com/sun/opengl/impl/x11/X11GLDrawable.java5
1 files changed, 5 insertions, 0 deletions
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)