On Wed, Oct 29, 2014 at 4:48 AM,  <[email protected]> wrote:
> From: José Fonseca <[email protected]>
>
> Non-standard GCC extension.
> ---
>  tests/spec/gl-1.0/readpix.c | 64 
> ++++++++++++++++++++++++++-------------------
>  1 file changed, 37 insertions(+), 27 deletions(-)
>
> diff --git a/tests/spec/gl-1.0/readpix.c b/tests/spec/gl-1.0/readpix.c
> index 7ee0be9..26f44a6 100644
> --- a/tests/spec/gl-1.0/readpix.c
> +++ b/tests/spec/gl-1.0/readpix.c
> @@ -100,7 +100,9 @@ check_rgba(void)
>         double err;
>         int xerr, yerr;
>         float expected[4], expected_rgba[4], actual_rgba[4];
> -       GLfloat buf[piglit_width][piglit_height][4];
> +       const int w = piglit_width;
> +       const int h = piglit_height;
> +       GLfloat *buf = (GLfloat *)malloc(h * w * 4 * sizeof *buf);

Don't cast malloc.
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to