summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-04-01 18:56:30 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-04-01 18:56:30 +0000
commit8d7a2504c36a855949d57a9fe3f972abb88e267a (patch)
tree32d9714d0a4b3fee3b86c7103c5ad6f6a52be0e2
parent4b28b5a885078dc4c8274a26c263c6586166e2e3 (diff)
improve some error messages
-rw-r--r--src/mesa/main/texstate.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 011294790b..d96b73a2f5 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -1,5 +1,3 @@
-/* $Id: texstate.c,v 1.95 2003/03/03 15:37:41 brianp Exp $ */
-
/*
* Mesa 3-D graphics library
* Version: 5.1
@@ -788,7 +786,7 @@ _mesa_GetTexEnvfv( GLenum target, GLenum pname, GLfloat *params )
}
break;
default:
- _mesa_error( ctx, GL_INVALID_ENUM, "glGetTexEnvfv(pname)" );
+ _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexEnvfv(pname=0x%x)", pname);
}
}
else if (target == GL_TEXTURE_FILTER_CONTROL_EXT) {
@@ -1001,7 +999,8 @@ _mesa_GetTexEnviv( GLenum target, GLenum pname, GLint *params )
}
break;
default:
- _mesa_error( ctx, GL_INVALID_ENUM, "glGetTexEnviv(pname)" );
+ _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexEnviv(pname=0x%x)",
+ pname);
}
}
else if (target == GL_TEXTURE_FILTER_CONTROL_EXT) {
@@ -1769,7 +1768,8 @@ _mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params )
; /* silence warnings */
}
/* If we get here, pname was an unrecognized enum */
- _mesa_error( ctx, GL_INVALID_ENUM, "glGetTexParameterfv(pname)" );
+ _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexParameterfv(pname=0x%x)",
+ pname);
}
@@ -1893,7 +1893,7 @@ _mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params )
; /* silence warnings */
}
/* If we get here, pname was an unrecognized enum */
- _mesa_error( ctx, GL_INVALID_ENUM, "glGetTexParameteriv(pname)" );
+ _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexParameteriv(pname=0x%x)", pname);
}