diff options
author | Kenneth Russel <[email protected]> | 2006-10-05 22:17:35 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-10-05 22:17:35 +0000 |
commit | 1e3682422919d22c360c89f6c2d05389f4890747 (patch) | |
tree | 6a6a81d25cfdf8ee8b90a2a030bbaf5b7bc3bdd3 /src | |
parent | 5299935c3cfcfd9314bffc2acdff557f6c594052 (diff) |
Fixed bug pointed out by user zero on JOGL forum where gluErrorString
didn't understand GL_INVALID_FRAMEBUFFER_OPERATION_EXT
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@938 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/com/sun/opengl/impl/error/Error.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/classes/com/sun/opengl/impl/error/Error.java b/src/classes/com/sun/opengl/impl/error/Error.java index 93afb3d8b..43153217c 100644 --- a/src/classes/com/sun/opengl/impl/error/Error.java +++ b/src/classes/com/sun/opengl/impl/error/Error.java @@ -59,7 +59,8 @@ public class Error { "invalid operation", "stack overflow", "stack underflow", - "out of memory" + "out of memory", + "invalid framebuffer operation" }; private static String[] gluErrorStrings = { @@ -78,7 +79,7 @@ public class Error { if( errorCode == 0 ) { return( "no error" ); } - if( (errorCode >= GL.GL_INVALID_ENUM) && (errorCode <= GL.GL_OUT_OF_MEMORY) ) { + if( (errorCode >= GL.GL_INVALID_ENUM) && (errorCode <= GL.GL_INVALID_FRAMEBUFFER_OPERATION_EXT) ) { return( glErrorStrings[ errorCode - GL.GL_INVALID_ENUM ] ); } if( errorCode == GL.GL_TABLE_TOO_LARGE ) { |