From: Michal Krol Date: Thu, 17 Dec 2009 20:57:24 +0000 (+0100) Subject: util/format: Fix bogus assertion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=440fc5bf788201a265892ff2e12bf102e63a2896;p=mesa.git util/format: Fix bogus assertion. --- diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index 25a06a8f7db..db1297fa1ec 100644 --- a/src/gallium/auxiliary/util/u_format.h +++ b/src/gallium/auxiliary/util/u_format.h @@ -225,7 +225,7 @@ util_format_get_component_bits(enum pipe_format format, return 0; } - assert(component >= 4); + assert(component < 4); /* Treat RGB and SRGB as equivalent. */ if (colorspace == UTIL_FORMAT_COLORSPACE_SRGB) {