diff options
author | Brian Paul <brianp@vmware.com> | 2009-10-30 19:03:44 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-10-30 19:08:18 -0600 |
commit | a71edc9455ef81a8dd5ec284e88061a585e63580 (patch) | |
tree | 897bdc4d1411b7732c03ea93f92854f5ea877695 /src/mesa/main | |
parent | 7c8bed62e0165a0be3363f7abf81bf9e30341e00 (diff) |
mesa: better error message
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/teximage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 73a555a181..69ef2cca5e 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1268,8 +1268,8 @@ texture_error_check( GLcontext *ctx, GLenum target, if (_mesa_base_tex_format(ctx, internalFormat) < 0) { if (!isProxy) { _mesa_error(ctx, GL_INVALID_VALUE, - "glTexImage%dD(internalFormat=0x%x)", - dimensions, internalFormat); + "glTexImage%dD(internalFormat=%s)", + dimensions, _mesa_lookup_enum_by_nr(internalFormat)); } return GL_TRUE; } |