From 4afcd8aa8b694264a37b1f796346916d99d87a1e Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 19 Jun 2006 16:39:49 +0000 Subject: [PATCH] Print the hex value of the errant input when an invalid stencil function is specified. --- src/mesa/main/stencil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c index 6b4d7e81eb8..9992ec9b6eb 100644 --- a/src/mesa/main/stencil.c +++ b/src/mesa/main/stencil.c @@ -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; } -- 2.30.2