summaryrefslogtreecommitdiffstats
path: root/waftools/fragments
diff options
context:
space:
mode:
Diffstat (limited to 'waftools/fragments')
-rw-r--r--waftools/fragments/gl_x11.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/waftools/fragments/gl_x11.c b/waftools/fragments/gl_x11.c
index ff11f551b2..7d879b6c0d 100644
--- a/waftools/fragments/gl_x11.c
+++ b/waftools/fragments/gl_x11.c
@@ -2,6 +2,10 @@
#include <GL/glx.h>
#include <stddef.h>
+#ifndef GL_VERSION_2_0
+#error "At least GL 2.0 headers needed."
+#endif
+
int main(int argc, char *argv[]) {
glXCreateContext(NULL, NULL, NULL, True);
glXQueryExtensionsString(NULL, 0);