projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ab8f6e
)
Remove PIPE_FORMAT_COUNT references.
author
michal
<michal@michal-laptop.(none)>
Sat, 27 Oct 2007 13:06:14 +0000
(14:06 +0100)
committer
michal
<michal@michal-laptop.(none)>
Sat, 27 Oct 2007 18:04:18 +0000
(19:04 +0100)
src/mesa/state_tracker/st_format.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_format.c
b/src/mesa/state_tracker/st_format.c
index 7564c6014ee342dc7baf7482ed7f358341496d12..cd44f19a76854beab122040c9b7a1279fff8adfd 100644
(file)
--- a/
src/mesa/state_tracker/st_format.c
+++ b/
src/mesa/state_tracker/st_format.c
@@
-247,12
+247,12
@@
st_choose_pipe_format(struct pipe_context *pipe, GLint internalFormat,
GLenum format, GLenum type)
{
const GLuint *supported;
- GLboolean allow[
PIPE_FORMAT_COUNT];
+ GLboolean allow[
256]; /* XXX: this will go away */
GLuint i, n;
/* query supported formats and fill in bool allow[] table */
supported = pipe->supported_formats(pipe, &n);
- assert(n <
PIPE_FORMAT_COUNT); /* sanity check
*/
+ assert(n <
256); /* sanity check */ /* XXX: this will go away
*/
memset(allow, 0, sizeof(allow));
for (i = 0; i < n; i++) {
allow[supported[i]] = 1;