Re: [Mesa-dev] [PATCH] mesa: remove array size so the static assert can work

2012-10-29 Thread Eric Anholt
Brian Paul writes: > With the explit NUM_TEXTURE_TARGETS array size, the assertion that > Elements(targets) == NUM_TEXTURE_TARGETS would pass even if elements > were missing. > --- > src/mesa/main/shared.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/mesa/ma

[Mesa-dev] [PATCH] mesa: remove array size so the static assert can work

2012-10-27 Thread Brian Paul
With the explit NUM_TEXTURE_TARGETS array size, the assertion that Elements(targets) == NUM_TEXTURE_TARGETS would pass even if elements were missing. --- src/mesa/main/shared.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c