Print the hex value of the errant input when an invalid stencil function is
authorIan Romanick <idr@us.ibm.com>
Mon, 19 Jun 2006 16:39:49 +0000 (16:39 +0000)
committerIan Romanick <idr@us.ibm.com>
Mon, 19 Jun 2006 16:39:49 +0000 (16:39 +0000)
specified.

src/mesa/main/stencil.c

index 6b4d7e81eb8b8e25f642c40eb8e8608df98c922a..9992ec9b6eb849bd0736dab16ef910a402a0cde2 100644 (file)
@@ -109,7 +109,7 @@ _mesa_StencilFunc( GLenum func, GLint ref, GLuint mask )
       case GL_ALWAYS:
          break;
       default:
-         _mesa_error( ctx, GL_INVALID_ENUM, "glStencilFunc" );
+         _mesa_error( ctx, GL_INVALID_ENUM, "glStencilFunc (0x%04x)", func );
          return;
    }