Mesa (pipe-format-simplify): util/format: Fix bogus assertion.
MichaŠKról
michal at kemper.freedesktop.org
Thu Dec 17 20:57:59 UTC 2009
Module: Mesa
Branch: pipe-format-simplify
Commit: 440fc5bf788201a265892ff2e12bf102e63a2896
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=440fc5bf788201a265892ff2e12bf102e63a2896
Author: Michal Krol <michal at vmware.com>
Date: Thu Dec 17 21:57:24 2009 +0100
util/format: Fix bogus assertion.
---
src/gallium/auxiliary/util/u_format.h | 2 +-
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) {
More information about the mesa-commit
mailing list