summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-06-22 14:30:48 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-07-22 17:18:31 +0100
commit5bf778742781947447f30ee076fdd6b0a22e1882 (patch)
tree6f90fe8aeed8596abe5fd082bbd20d91d926f1eb
parentc8e18c8434aaab2914ed115af5828a3bdc639ce0 (diff)
glx-swap-event: remove '#if defined(GLX_EXTENSION)' guards
We want the test to be complete/consistent regardless if the headers we're building against are new or old. In case of the the latter we could add the definitions locally, if needed. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
-rw-r--r--tests/glx/glx-swap-event.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/glx/glx-swap-event.c b/tests/glx/glx-swap-event.c
index a9f4136b8..25c3c4ab2 100644
--- a/tests/glx/glx-swap-event.c
+++ b/tests/glx/glx-swap-event.c
@@ -34,9 +34,6 @@
#include <sys/time.h>
-#if defined(GLX_MESA_swap_control) && defined(GLX_INTEL_swap_event)
-
-
/* return current time (in seconds) */
static double
current_time(void)
@@ -539,14 +536,3 @@ 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 && GLX_INTEL_swap_event */