summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-12-17 21:57:24 +0100
committerMichal Krol <michal@vmware.com>2009-12-17 21:57:24 +0100
commit440fc5bf788201a265892ff2e12bf102e63a2896 (patch)
tree3a56e1ddfbd89ca7318576a7d81a074a95f691d9
parent3af2ddbe943f0fe0d6b0ba9e627cbb82d0cc79f2 (diff)
downloadexternal_mesa3d-440fc5bf788201a265892ff2e12bf102e63a2896.zip
external_mesa3d-440fc5bf788201a265892ff2e12bf102e63a2896.tar.gz
external_mesa3d-440fc5bf788201a265892ff2e12bf102e63a2896.tar.bz2
util/format: Fix bogus assertion.
-rw-r--r--src/gallium/auxiliary/util/u_format.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h
index 25a06a8..db1297f 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) {