summaryrefslogtreecommitdiff
path: root/src/glu
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-10-05 02:08:53 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-10-05 02:08:53 +0000
commit8184ec9fb6b08c6c8a0398040ae5d89dd0b0cfb8 (patch)
treea0c5d5dd2349ae3f854e465a163f5a5726ff980f /src/glu
parenta9fc8ba756dd25a07dc19058fe60f65bda82a055 (diff)
added GL_INVALID_FRAMEBUFFER_OPERATION_EXT to gluErrorString()
Diffstat (limited to 'src/glu')
-rw-r--r--src/glu/sgi/libutil/error.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/glu/sgi/libutil/error.c b/src/glu/sgi/libutil/error.c
index 7c8f065f6f..12705c8a8e 100644
--- a/src/glu/sgi/libutil/error.c
+++ b/src/glu/sgi/libutil/error.c
@@ -31,8 +31,8 @@
** published by SGI, but has not been independently verified as being
** compliant with the OpenGL(R) version 1.2.1 Specification.
**
-** $Date: 2001/03/17 00:25:41 $ $Revision: 1.1 $
-** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libutil/error.c,v 1.1 2001/03/17 00:25:41 brianp Exp $
+** $Date: 2005/10/05 02:08:53 $ $Revision: 1.2 $
+** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libutil/error.c,v 1.2 2005/10/05 02:08:53 brianp Exp $
*/
#include "gluos.h"
@@ -81,6 +81,11 @@ gluErrorString(GLenum errorCode)
if ((errorCode >= GLU_TESS_ERROR1) && (errorCode <= GLU_TESS_ERROR8)) {
return (const unsigned char *) __gluTessErrorString(errorCode - (GLU_TESS_ERROR1 - 1));
}
+#ifdef GL_EXT_framebuffer_object
+ if (errorCode == GL_INVALID_FRAMEBUFFER_OPERATION_EXT) {
+ return (const unsigned char *) "invalid framebuffer operation";
+ }
+#endif
return 0;
}