util/format: Fix bogus assertion.

This commit is contained in:
Michal Krol 2009-12-17 21:57:24 +01:00
parent 3af2ddbe94
commit 440fc5bf78

View file

@ -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) {