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 <[email protected]>
> ---
>  tests/spec/gles-3.0/texture-immutable-levels.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Chad Versace <[email protected]>
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to