summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-12-17 21:57:24 +0100
committerMichal Krol <[email protected]>2009-12-17 21:57:24 +0100
commit440fc5bf788201a265892ff2e12bf102e63a2896 (patch)
tree3a56e1ddfbd89ca7318576a7d81a074a95f691d9 /src/gallium
parent3af2ddbe943f0fe0d6b0ba9e627cbb82d0cc79f2 (diff)
util/format: Fix bogus assertion.
Diffstat (limited to 'src/gallium')
-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 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) {