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

Daniel Kurtz djkurtz at chromium.org
Thu Jan 16 03:34:37 PST 2014


Thank you. Can you push it as well? I don't have commit access.

On Sat, Jan 11, 2014 at 2:57 AM, Chad Versace
<chad.versace at linux.intel.com> wrote:
> 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