diff options
author | Sven Gothel <[email protected]> | 2013-01-26 05:58:23 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-01-26 05:58:23 +0100 |
commit | 176d2c68842587b55117dbe0df2fbd2932d0cd10 (patch) | |
tree | efc91cfb7346bf71ee34271c385d9bfa5d6bd132 /src/jogl/classes | |
parent | 7fd5f76e1eb4bbf93fe9b1171744bd755d8f96e4 (diff) |
WGLContext: Enhance DEBUG output for failed makeCurrentImpl(..)
Diffstat (limited to 'src/jogl/classes')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java index a654cdd04..e76c39805 100644 --- a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java +++ b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLContext.java @@ -379,7 +379,11 @@ public class WindowsWGLContext extends GLContextImpl { protected void makeCurrentImpl() throws GLException { if (WGL.wglGetCurrentContext() != contextHandle) { if (!wglMakeContextCurrent(drawable.getHandle(), drawableRead.getHandle(), contextHandle)) { - throw new GLException("Error making context current: 0x" + toHexString(contextHandle) + ", werr: " + GDI.GetLastError() + ", " + this); + throw new GLException("Error making context " + toHexString(contextHandle) + + " current on Thread " + getThreadName() + + ", drawableWrite " + toHexString(drawable.getHandle()) + + ", drawableRead "+ toHexString(drawableRead.getHandle()) + + ", werr: " + GDI.GetLastError() + ", " + this); } } } |