diff options
author | Kenneth Russel <[email protected]> | 2005-02-10 19:28:32 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-02-10 19:28:32 +0000 |
commit | 97ae478ba02f6842327ba3c7de573f7d639bd847 (patch) | |
tree | 60aa88b01cbb493b9254216d4eeeb0e4a64cc74d /src/net/java | |
parent | cce7aa4ea8359e0d25ff404fd9066445a6d951fd (diff) |
Added extended error code information for wglShareLists failures
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@222 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java')
-rw-r--r-- | src/net/java/games/jogl/impl/windows/WindowsGLContext.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/impl/windows/WindowsGLContext.java b/src/net/java/games/jogl/impl/windows/WindowsGLContext.java index f80b2a107..d26a88cc7 100644 --- a/src/net/java/games/jogl/impl/windows/WindowsGLContext.java +++ b/src/net/java/games/jogl/impl/windows/WindowsGLContext.java @@ -159,7 +159,8 @@ public abstract class WindowsGLContext extends GLContext { } if (!WGL.wglShareLists(hglrc2, hglrc)) { throw new GLException("wglShareLists(0x" + Long.toHexString(hglrc2) + - ", 0x" + Long.toHexString(hglrc) + ") failed"); + ", 0x" + Long.toHexString(hglrc) + ") failed: error code " + + WGL.GetLastError()); } } GLContextShareSet.contextCreated(this); |