mesa: Don't assertion fail for _mesa_get_format_name(MESA_FORMAT_NONE)
authorEric Anholt <eric@anholt.net>
Fri, 10 Dec 2010 19:34:41 +0000 (11:34 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 10 Dec 2010 23:29:52 +0000 (15:29 -0800)
src/mesa/main/formats.c

index cd9eb81..42f70ca 100644 (file)
@@ -863,7 +863,6 @@ const char *
 _mesa_get_format_name(gl_format format)
 {
    const struct gl_format_info *info = _mesa_get_format_info(format);
-   ASSERT(info->BytesPerBlock);
    return info->StrName;
 }