From 42ad8664f972aaecff80934b5ec7d135d04ea767 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 3 Mar 2003 15:37:41 +0000 Subject: better error messages (Leif Delgass) --- src/mesa/main/texstate.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/mesa/main/texstate.c') diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index b1b7535a33..011294790b 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -1,4 +1,4 @@ -/* $Id: texstate.c,v 1.94 2003/02/23 04:12:57 brianp Exp $ */ +/* $Id: texstate.c,v 1.95 2003/03/03 15:37:41 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1063,10 +1063,11 @@ _mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params ) ASSERT_OUTSIDE_BEGIN_END(ctx); if (MESA_VERBOSE&(VERBOSE_API|VERBOSE_TEXTURE)) - _mesa_debug(ctx, "texPARAM %s %s %d...\n", + _mesa_debug(ctx, "glTexParameter %s %s %.1f(%s)...\n", _mesa_lookup_enum_by_nr(target), _mesa_lookup_enum_by_nr(pname), - eparam); + *params, + _mesa_lookup_enum_by_nr(eparam)); switch (target) { @@ -1912,10 +1913,11 @@ _mesa_TexGenfv( GLenum coord, GLenum pname, const GLfloat *params ) ASSERT_OUTSIDE_BEGIN_END(ctx); if (MESA_VERBOSE&(VERBOSE_API|VERBOSE_TEXTURE)) - _mesa_debug(ctx, "texGEN %s %s %x...\n", + _mesa_debug(ctx, "glTexGen %s %s %.1f(%s)...\n", _mesa_lookup_enum_by_nr(coord), _mesa_lookup_enum_by_nr(pname), - *(int *)params); + *params, + _mesa_lookup_enum_by_nr((GLenum) (GLint) *params)); switch (coord) { case GL_S: -- cgit v1.2.3