diff options
author | Brian Paul <brianp@vmware.com> | 2013-03-21 09:41:54 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2013-03-25 20:35:36 -0600 |
commit | cdc65f67daa5ce73846c86af18c9f2013b6e696c (patch) | |
tree | 21225d9c84b20c27b483ce788284d9c1fa2a2f4b | |
parent | 3e442a30a2bccdc07b5b0bf7930b1edadfa46fa8 (diff) |
util: move #define GLXBadProfileARB from .c file to .h file
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.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
-rw-r--r-- | tests/util/piglit-glx-util.c | 4 | ||||
-rw-r--r-- | 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 af26c191..016fa465 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 81bf4324..e74ac29b 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); |