From 1e3682422919d22c360c89f6c2d05389f4890747 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 5 Oct 2006 22:17:35 +0000 Subject: 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 --- src/classes/com/sun/opengl/impl/error/Error.java | 5 +++-- 1 file 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 ) { -- cgit v1.2.3