diff options
author | Brian Paul <[email protected]> | 2003-03-03 15:37:41 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-03-03 15:37:41 +0000 |
commit | 42ad8664f972aaecff80934b5ec7d135d04ea767 (patch) | |
tree | 14b50862edd6d131c3fbdaba1ace14391bb4d3a5 /src/mesa/main/texstate.c | |
parent | 078418208fc521c3c621961cf76f39e6b6659bdb (diff) |
better error messages (Leif Delgass)
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r-- | src/mesa/main/texstate.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index b1b7535a33f..011294790b0 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: |