projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc987ad
)
mesa: Assert format is not MESA_FORMAT_COUNT in _mesa_format_to_type_and_comps.
author
Vinson Lee
<vlee@vmware.com>
Fri, 24 Dec 2010 02:16:59 +0000
(18:16 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 24 Dec 2010 02:19:42 +0000
(18:19 -0800)
The case of format being MESA_FORMAT_COUNT should never occur.
src/mesa/main/formats.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/formats.c
b/src/mesa/main/formats.c
index fcc8526c4047f0059953eefe4f07e18a031b08d6..a6bec486b8925da150d0f9723697a2df9feda582 100644
(file)
--- a/
src/mesa/main/formats.c
+++ b/
src/mesa/main/formats.c
@@
-1531,8
+1531,11
@@
_mesa_format_to_type_and_comps(gl_format format,
*comps = 4;
return;
- case MESA_FORMAT_NONE:
case MESA_FORMAT_COUNT:
+ assert(0);
+ return;
+
+ case MESA_FORMAT_NONE:
/* For debug builds, warn if any formats are not handled */
#ifdef DEBUG
default: