diff options
author | Sven Gothel <[email protected]> | 2013-01-26 05:52:24 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-01-26 05:52:24 +0100 |
commit | e6ccafabb8fefa2381e7c102ca9cba4ef7555035 (patch) | |
tree | da4c329cea441146ebea8f52f289acb73b3110b4 /src/jogl/classes/jogamp/opengl/x11 | |
parent | 9505d48f1702e2ba8c9e72edcbb8fab5ad01bc56 (diff) |
[EGL/X11]Context: Enhance DEBUG output for failed makeCurrentImpl(..)
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/x11')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/x11/glx/X11GLXContext.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXContext.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXContext.java index c2b66801e..feda64f30 100644 --- a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXContext.java +++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXContext.java @@ -403,9 +403,14 @@ public abstract class X11GLXContext extends GLContextImpl { protected void makeCurrentImpl() throws GLException { long dpy = drawable.getNativeSurface().getDisplayHandle(); - if (GLX.glXGetCurrentContext() != contextHandle) { + if (GLX.glXGetCurrentContext() != contextHandle) { if (!glXMakeContextCurrent(dpy, drawable.getHandle(), drawableRead.getHandle(), contextHandle)) { - throw new GLException(getThreadName()+": Error making context current: "+this); + throw new GLException("Error making context " + toHexString(contextHandle) + + " current on Thread " + getThreadName() + + " with display " + toHexString(dpy) + + ", drawableWrite " + toHexString(drawable.getHandle()) + + ", drawableRead "+ toHexString(drawableRead.getHandle()) + + " - " + this); } } } |