[Piglit] [PATCH] util: move #define GLXBadProfileARB from .c file to .h file

Jose Fonseca jfonseca at vmware.com
Fri Mar 22 01:40:26 PDT 2013


----- Original Message -----
> Some of the ES tests check for this error code.  If the installed
> glxproto.h file isn't new enough this symbol may be missing and
> compilation will fail.
> ---
>  tests/util/piglit-glx-util.c |    4 ----
>  tests/util/piglit-glx-util.h |    4 ++++
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/util/piglit-glx-util.c b/tests/util/piglit-glx-util.c
> index af26c19..016fa46 100644
> --- a/tests/util/piglit-glx-util.c
> +++ b/tests/util/piglit-glx-util.c
> @@ -28,10 +28,6 @@
>  #include "piglit-util-gl-common.h"
>  #include "piglit-glx-util.h"
>  
> -#ifndef GLXBadProfileARB
> -#define GLXBadProfileARB 13
> -#endif
> -
>  int piglit_automatic;
>  
>  #ifndef _WIN32
> diff --git a/tests/util/piglit-glx-util.h b/tests/util/piglit-glx-util.h
> index 81bf432..e74ac29 100644
> --- a/tests/util/piglit-glx-util.h
> +++ b/tests/util/piglit-glx-util.h
> @@ -31,6 +31,10 @@
>  #include "GL/glx.h"
>  #include "GL/glxproto.h"
>  
> +#ifndef GLXBadProfileARB
> +#define GLXBadProfileARB 13
> +#endif
> +
>  Display *piglit_get_glx_display();
>  XVisualInfo * piglit_get_glx_visual(Display *dpy);
>  GLXContext piglit_get_glx_context(Display *dpy, XVisualInfo *visinfo);
> --
> 1.7.3.4
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
> 


Reviewed-by: Jose Fonseca <jfonseca at vmware.com>


More information about the Piglit mailing list