summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_format.c
diff options
context:
space:
mode:
authormichal <michal@michal-laptop.(none)>2007-10-27 14:06:14 +0100
committermichal <michal@michal-laptop.(none)>2007-10-27 19:04:18 +0100
commite9ce69b1c9cb6a84e4c0403cf3090653e125c91d (patch)
tree274a881a82f4e32c87f55d91b754d96d1eee36d8 /src/mesa/state_tracker/st_format.c
parent1ab8f6e69615c4f39110cf9202ae4b52238c0bf2 (diff)
Remove PIPE_FORMAT_COUNT references.
Diffstat (limited to 'src/mesa/state_tracker/st_format.c')
-rw-r--r--src/mesa/state_tracker/st_format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index 7564c6014e..cd44f19a76 100644
--- 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;