mesa: better error message
authorBrian Paul <brianp@vmware.com>
Sat, 31 Oct 2009 01:03:44 +0000 (19:03 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 31 Oct 2009 01:08:18 +0000 (19:08 -0600)
src/mesa/main/teximage.c

index 73a555a1816710ab64501dd33ce05814cc856dfa..69ef2cca5ee7f08617f307362039e1625f960781 100644 (file)
@@ -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;
    }