Print the hex value of the errant input when an invalid stencil function is

specified.
This commit is contained in:
Ian Romanick
2006-06-19 16:39:49 +00:00
parent 161de10ce8
commit 4afcd8aa8b
+1 -1
View 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;
}