projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3af2ddb
)
util/format: Fix bogus assertion.
author
Michal Krol
<michal@vmware.com>
Thu, 17 Dec 2009 20:57:24 +0000
(21:57 +0100)
committer
Michal Krol
<michal@vmware.com>
Thu, 17 Dec 2009 20:57:24 +0000
(21:57 +0100)
src/gallium/auxiliary/util/u_format.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_format.h
b/src/gallium/auxiliary/util/u_format.h
index 25a06a8f7db0f8404d544c8b69335243c1d881ca..db1297fa1eca3a16952fdfcb9dfecf1bf2e9fcce 100644
(file)
--- 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) {