fix error code test limit (bug 11795)
authorBrian <brian.paul@tungstengraphics.com>
Wed, 1 Aug 2007 17:27:29 +0000 (11:27 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 1 Aug 2007 17:27:29 +0000 (11:27 -0600)
src/glu/sgi/libutil/error.c

index 3d1ce9b..c200056 100644 (file)
@@ -82,7 +82,7 @@ gluErrorString(GLenum errorCode)
     if ((errorCode >= GLU_NURBS_ERROR1) && (errorCode <= GLU_NURBS_ERROR37)) {
        return (const GLubyte *) __gluNURBSErrorString(errorCode - (GLU_NURBS_ERROR1 - 1));
     }
-    if ((errorCode >= GLU_TESS_ERROR1) && (errorCode <= GLU_TESS_ERROR8)) {
+    if ((errorCode >= GLU_TESS_ERROR1) && (errorCode <= GLU_TESS_ERROR6)) {
        return (const GLubyte *) __gluTessErrorString(errorCode - (GLU_TESS_ERROR1 - 1));
     }
     return (const GLubyte *) 0;