On Wed, Jan 11, 2017 at 1:46 PM, Alejandro Piñeiro <apinhe...@igalia.com> wrote:
> Behaviour and error list changed on OpenGL > 4.0. So much
> that it is worth to create a new 4.x test. So we skip if
> current context is > 4.0.
> ---
>  tests/spec/gl-3.1/draw-buffers-errors.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/tests/spec/gl-3.1/draw-buffers-errors.c 
> b/tests/spec/gl-3.1/draw-buffers-errors.c
> index c18065b..cb1fd5b 100644
> --- a/tests/spec/gl-3.1/draw-buffers-errors.c
> +++ b/tests/spec/gl-3.1/draw-buffers-errors.c
> @@ -77,6 +77,13 @@ piglit_init(int argc, char **argv)
>         bool pass = true;
>         unsigned i;
>
> +       if (piglit_get_gl_version() >= 40) {
> +               /* Behaviour/error list changed on OpenGL 4.0, so we
> +                * let the equivalent 4.x test to test it.
> +                */
> +               piglit_report_result(PIGLIT_SKIP);
> +       }
> +
>         for (i = 0; i < ARRAY_SIZE(valids); i++) {
>                 GLenum err = 0;
>                 glDrawBuffers(1, &valids[i]);
> --
> 2.9.3
>
> _______________________________________________
> Piglit mailing list
> Piglit@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit

Patches 2-3 are:
Reviewed-by: Anuj Phogat <anuj.pho...@gmail.com>
_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to