summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-25 00:18:05 +0200
committerwm4 <wm4@nowhere>2015-09-25 00:20:11 +0200
commit0e9cfa6b642266af66cba59a259e0edef44d60f0 (patch)
tree66ad0a2d4805efa78eb9534d0fe308718a38edc8 /wscript
parentd47dff3faa246256d9e29daa215db4b5aedcb3f2 (diff)
downloadmpv-0e9cfa6b642266af66cba59a259e0edef44d60f0.tar.bz2
mpv-0e9cfa6b642266af66cba59a259e0edef44d60f0.tar.xz
vo_opengl: add mechanism to retrieve Display from EGL context
The VAAPI EGL interop code will need access to the X11 Display. While GLX could return it from the current GLX context, EGL has no such mechanism. (At least no standard one supported by all implementations.) So mpv makes up such a mechanism. For internal purposes, this is very rather awkward solution, but it's needed for libmpv anyway.
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/wscript b/wscript
index f23cf43500..22cc4693d1 100644
--- a/wscript
+++ b/wscript
@@ -173,6 +173,10 @@ main_dependencies = [
'func': check_true,
'deps_any': ['stdatomic', 'atomic-builtins', 'sync-builtins'],
}, {
+ 'name': 'c11-tls',
+ 'desc': 'C11 TLS support',
+ 'func': check_statement('stddef.h', 'static _Thread_local int x = 0'),
+ }, {
'name': 'librt',
'desc': 'linking with -lrt',
'deps': [ 'pthreads' ],
@@ -605,7 +609,7 @@ video_output_features = [
} , {
'name': '--egl-x11',
'desc': 'OpenGL X11 EGL Backend',
- 'deps': [ 'x11' ],
+ 'deps': [ 'x11', 'c11-tls' ],
'groups': [ 'gl' ],
'func': check_pkg_config('egl', 'gl'),
} , {