diff options
author | Sven Gothel <[email protected]> | 2009-03-14 05:21:12 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-03-14 05:21:12 +0000 |
commit | 0d7125b15402c79507f951a68d42e1456768fc33 (patch) | |
tree | 785024ed760c7d78e0cc120b2d8add8fb1049885 /src/java | |
parent | 056229b0b7a962c36afca73a9925dc978f93e13c (diff) |
BuildComposablePipeline DebugGL: Add the error code in message
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@126 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java b/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java index db2bfd2..468f8a6 100644 --- a/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java +++ b/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java @@ -827,8 +827,9 @@ public class BuildComposablePipeline } output.println(" case GL_OUT_OF_MEMORY: buf.append(\"GL_OUT_OF_MEMORY \"); break;"); output.println(" case GL_NO_ERROR: throw new InternalError(\"Should not be treating GL_NO_ERROR as error\");"); - output.println(" default: throw new InternalError(\"Unknown glGetError() return value: \" + err);"); + output.println(" default: buf.append(\"Unknown glGetError() return value: \");"); output.println(" }"); + output.println(" buf.append(\"( \" + err + \" 0x\"+Integer.toHexString(err).toUpperCase() + \"), \");"); output.println(" } while ((--recursionDepth >= 0) && (err = " + getDownstreamObjectName() + ".glGetError()) != GL_NO_ERROR);"); |