[Piglit] [PATCH] arb_texture_view: fix array size
Ian Romanick
idr at freedesktop.org
Tue Aug 13 17:44:21 PDT 2013
On 08/13/2013 04:17 PM, Brian Paul wrote:
> Change size from 3 to 5 since that's how many textures we gen/use.
> ---
> tests/spec/arb_texture_view/texture-immutable-levels.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/spec/arb_texture_view/texture-immutable-levels.c b/tests/spec/arb_texture_view/texture-immutable-levels.c
> index d825562..b6c7836 100644
> --- a/tests/spec/arb_texture_view/texture-immutable-levels.c
> +++ b/tests/spec/arb_texture_view/texture-immutable-levels.c
> @@ -47,7 +47,7 @@ PIGLIT_GL_TEST_CONFIG_END
> enum piglit_result
> piglit_display(void)
> {
> - GLuint tex[3];
> + GLuint tex[5];
> GLint level;
> GLint num_level;
If all the textures are Gen'ed at once, we should use ARRAY_SIZE(tex) there.
More information about the Piglit
mailing list