From 97ae478ba02f6842327ba3c7de573f7d639bd847 Mon Sep 17 00:00:00 2001
From: Kenneth Russel <kbrussel@alum.mit.edu>
Date: Thu, 10 Feb 2005 19:28:32 +0000
Subject: 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
---
 src/net/java/games/jogl/impl/windows/WindowsGLContext.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/net/java/games')

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);      
-- 
cgit v1.2.3