From 0e9cfa6b642266af66cba59a259e0edef44d60f0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 25 Sep 2015 00:18:05 +0200 Subject: 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. --- wscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index f23cf43500..22cc4693d1 100644 --- a/wscript +++ b/wscript @@ -172,6 +172,10 @@ main_dependencies = [ 'desc': 'compiler support for usable thread synchronization built-ins', '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', @@ -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'), } , { -- cgit v1.2.3