summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-30 17:37:56 +0100
committerwm4 <wm4@nowhere>2019-11-30 17:37:56 +0100
commit6a88e7463e9f759121b109be16cd4bd911355c86 (patch)
treeb86ca889ab7a948d9fb15fa471c4a25189f2b787
parentcd9fe3a843e85259667b6b11f56c5f5c664c5948 (diff)
downloadmpv-6a88e7463e9f759121b109be16cd4bd911355c86.tar.bz2
mpv-6a88e7463e9f759121b109be16cd4bd911355c86.tar.xz
build: require at least GL 2.0 headers for GLX
The previous hack for fixing #7201 requires this, but it wasn't checked. It's easy to check, so do it. (Yes, we could just have required OpenGL 3.2 headers and skipped the earlier fix.) For #7201.
-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);