mesa: print enum string in compressed_subtexture_error_check() error msg
authorBrian Paul <brianp@vmware.com>
Tue, 1 Dec 2015 21:35:14 +0000 (14:35 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 2 Dec 2015 17:28:15 +0000 (10:28 -0700)
Trivial.

src/mesa/main/teximage.c

index 37dbe267e68d8ef4adb9cab4044f8a0f04fa08b4..d5fe03485c28de218d0444c34da28dc3c7ac8a90 100644 (file)
@@ -4303,8 +4303,8 @@ compressed_subtexture_error_check(struct gl_context *ctx, GLint dims,
 
    if ((GLint) format != texImage->InternalFormat) {
       _mesa_error(ctx, GL_INVALID_OPERATION,
-                  "%s(format=0x%x)",
-                  callerName, format);
+                  "%s(format=%s)",
+                  callerName, _mesa_enum_to_string(format));
       return GL_TRUE;
    }