summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-03-03 15:37:41 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-03-03 15:37:41 +0000
commit42ad8664f972aaecff80934b5ec7d135d04ea767 (patch)
tree14b50862edd6d131c3fbdaba1ace14391bb4d3a5 /src/mesa/main
parent078418208fc521c3c621961cf76f39e6b6659bdb (diff)
better error messages (Leif Delgass)
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/dlist.c6
-rw-r--r--src/mesa/main/texstate.c12
2 files changed, 10 insertions, 8 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index f04bedc68e..3fbb2ad928 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 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: