mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
Remove PIPE_FORMAT_COUNT references.
This commit is contained in:
parent
1ab8f6e696
commit
e9ce69b1c9
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue