[Piglit] [PATCH 2/3] arb_texture_view_rendering-formats: fix wrong array initialization

Lionel Landwerlin lionel.g.landwerlin at intel.com
Tue Jan 10 14:49:25 UTC 2017


Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

On 10/01/17 14:38, Sebastian Olender wrote:
> Signed-off-by: Sebastian Olender <sebastian.d.olender at intel.com>
> ---
>   tests/spec/arb_texture_view/rendering-formats.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/spec/arb_texture_view/rendering-formats.c b/tests/spec/arb_texture_view/rendering-formats.c
> index 41b521a..44ab56b 100644
> --- a/tests/spec/arb_texture_view/rendering-formats.c
> +++ b/tests/spec/arb_texture_view/rendering-formats.c
> @@ -1453,7 +1453,7 @@ create_test_clear_program(const struct format_info *base,
>   	GLuint prog;
>   	const char *sampler = "";
>   	const char *conv = "";
> -	unsigned expected[4] = {};
> +	unsigned expected[4] = {0};
>   	unsigned i;
>   	unsigned base_num_components = get_num_components(base);
>   	bool test_nan = false;




More information about the Piglit mailing list