Commit 02006412 authored by Brian Paul's avatar Brian Paul

glx-swap-event: test for GLX_MESA_swap_control at compile time

In case glx.h / glxext.h aren't new enough.
parent 3cbeffb7
......@@ -33,6 +33,10 @@
#include "GL/glx.h"
#include <sys/time.h>
#ifdef GLX_MESA_swap_control
/* return current time (in seconds) */
static double
current_time(void)
......@@ -513,3 +517,14 @@ main(int argc, char *argv[])
return 0;
}
#else
int
main(int argc, char *argv[])
{
piglit_report_result(PIGLIT_SKIP);
return 0;
}
#endif /* GLX_MESA_swap_control */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment