util: Format error format string as the rest of the pipe formats
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 29 Apr 2010 15:58:42 +0000 (16:58 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Thu, 29 Apr 2010 16:00:21 +0000 (17:00 +0100)
src/gallium/auxiliary/util/u_format.h

index 605b13bd1146a9c67f96283d7906f332c2ac1193..fb6ade5c06b5f1b7739b9b0ae1439f4df8a51a5c 100644 (file)
@@ -332,7 +332,7 @@ util_format_name(enum pipe_format format)
 
    assert(desc);
    if (!desc) {
-      return "???";
+      return "PIPE_FORMAT_???";
    }
 
    return desc->name;