From 32cd85bc7ecfa74d3fefef5570e4ef546ae0643a Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 19 Dec 2015 12:45:07 +0100 Subject: vo_opengl: x11egl: retrieve framebuffer depth This is used for dithering, although I'm not aware of anyone who got higher than 8 bit depth support to work on Linux. Also put this into egl_helpers.c. Since EGL is pseudo-portable at best I have no hope that the EGL context creation code in all the backends can be fully shared. But some self-contained functionality can definitely be shared. --- wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index a5e6914133..9d09170fac 100644 --- a/wscript +++ b/wscript @@ -760,7 +760,12 @@ video_output_features = [ } , { 'name': '--gl', 'desc': 'OpenGL video outputs', - 'deps_any': [ 'gl-cocoa', 'gl-x11', 'egl-drm', 'gl-win32', 'gl-wayland', 'rpi' ], + 'deps_any': [ 'gl-cocoa', 'gl-x11', 'egl-x11', 'egl-drm', 'gl-win32', 'gl-wayland', 'rpi' ], + 'func': check_true + }, { + 'name': 'egl-helpers', + 'desc': 'EGL helper functions', + 'deps_any': [ 'egl-x11' ], 'func': check_true } ] -- cgit v1.2.3