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 | |
parent | 078418208fc521c3c621961cf76f39e6b6659bdb (diff) |
better error messages (Leif Delgass)
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/dlist.c | 6 | ||||
-rw-r--r-- | src/mesa/main/texstate.c | 12 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index f04bedc68e8..3fbb2ad9283 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -1,4 +1,4 @@ -/* $Id: dlist.c,v 1.102 2003/01/21 21:47:48 brianp Exp $ */ +/* $Id: dlist.c,v 1.103 2003/03/03 15:37:45 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -5083,7 +5083,7 @@ _mesa_CallList( GLuint list ) if (MESA_VERBOSE & VERBOSE_API) - _mesa_debug(ctx, "_mesa_CallList %d\n", list); + _mesa_debug(ctx, "glCallList %d\n", list); /* mesa_print_display_list( list ); */ @@ -5116,7 +5116,7 @@ _mesa_CallLists( GLsizei n, GLenum type, const GLvoid *lists ) GLboolean save_compile_flag; if (MESA_VERBOSE & VERBOSE_API) - _mesa_debug(ctx, "_mesa_CallLists %d\n", n); + _mesa_debug(ctx, "glCallLists %d\n", n); switch (type) { case GL_BYTE: 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: |