Mesa (master): mesa: Don't assertion fail for _mesa_get_format_name( MESA_FORMAT_NONE)

Eric Anholt anholt at kemper.freedesktop.org
Sat Dec 11 00:29:44 UTC 2010


Module: Mesa
Branch: master
Commit: a7e2d649710efaf6b542e8a96453baba5c58321f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7e2d649710efaf6b542e8a96453baba5c58321f

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Dec 10 11:34:41 2010 -0800

mesa: Don't assertion fail for _mesa_get_format_name(MESA_FORMAT_NONE)

---

 src/mesa/main/formats.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index cd9eb81..42f70ca 100644
--- a/src/mesa/main/formats.c
+++ b/src/mesa/main/formats.c
@@ -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;
 }
 




More information about the mesa-commit mailing list