Module: Mesa
Branch: pipe-format-simplify
Commit: 440fc5bf788201a265892ff2e12bf102e63a2896
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=440fc5bf788201a265892ff2e12bf102e63a2896

Author: Michal Krol <[email protected]>
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) {

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to