[Piglit] [PATCH 3/8] gles-3.0/texture-immutable-levels: Fix tex array size

Chad Versace chad.versace at linux.intel.com
Fri Jan 10 10:57:46 PST 2014


On Tue, Jan 07, 2014 at 12:02:38AM +0800, Daniel Kurtz wrote:
> We access tex[0] throught tex[3].
> So, tex must have at least 4 elements.
> This fixes a gcc warning:
> 
> warning: array subscript is above array bounds [-Warray-bounds]
>   glBindTexture(GL_TEXTURE_3D, tex[3]);
>                                ^
> 
> Signed-off-by: Daniel Kurtz <djkurtz at chromium.org>
> ---
>  tests/spec/gles-3.0/texture-immutable-levels.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Chad Versace <chad.versace at linux.intel.com>


More information about the Piglit mailing list