diff options
author | Sven Gothel <[email protected]> | 2010-10-26 07:39:03 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-10-26 07:39:03 +0200 |
commit | d52181032830acdd5e4069a41ccd0daff5922d8a (patch) | |
tree | 2b1b44f7872e14b31c16a6d4d51c0942babdb622 /src/jogl/classes/com/jogamp/opengl | |
parent | 18f3a050e31b903ce11dd16783e8343f904cd6ff (diff) |
can't enable x11IOErrorHandler without disable
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXContext.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXContext.java b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXContext.java index 21de61ff8..3cf691493 100644 --- a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXContext.java +++ b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXContext.java @@ -47,6 +47,7 @@ import javax.media.nativewindow.*; import com.jogamp.opengl.impl.*; import com.jogamp.gluegen.runtime.ProcAddressTable; import com.jogamp.gluegen.runtime.opengl.GLProcAddressResolver; +import com.jogamp.nativewindow.impl.x11.X11Util; public abstract class X11GLXContext extends GLContextImpl { private boolean glXQueryExtensionsStringInitialized; @@ -106,11 +107,18 @@ public abstract class X11GLXContext extends GLContextImpl { protected Map/*<String, String>*/ getExtensionNameMap() { return extensionNameMap; } + protected static final boolean TRACE_CONTEXT_CURRENT = false; // true; + protected boolean glXMakeContextCurrent(long dpy, long writeDrawable, long readDrawable, long ctx) { boolean res = false; try { - // at least on ATI we receive 'often' SEGV in case of + if(TRACE_CONTEXT_CURRENT) { + Throwable t = new Throwable(Thread.currentThread()+" - glXMakeContextCurrent("+toHexString(dpy)+", "+ + toHexString(writeDrawable)+", "+toHexString(readDrawable)+", "+toHexString(ctx)+")"); + t.printStackTrace(); + } + // at least on ATI we receive 'often' SEGV in case of // highly multithreaded MakeContextCurrent calls with writeDrawable==readDrawable if(writeDrawable==readDrawable) { res = GLX.glXMakeCurrent(dpy, writeDrawable, ctx); |