summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-12-16 00:37:18 +0100
committerwm4 <wm4@nowhere>2019-12-16 00:37:18 +0100
commit31eb2f9f33b05060e5f63b3d53188814f8a30f32 (patch)
tree23a2ff2424d92e14380b99a4100a0bb0da1427f3
parente1586585b4c54b1f76379728e4f1478b2fd5b3ce (diff)
downloadmpv-31eb2f9f33b05060e5f63b3d53188814f8a30f32.tar.bz2
mpv-31eb2f9f33b05060e5f63b3d53188814f8a30f32.tar.xz
build: downgrade EGL requirement from 1.5 to 1.4
With the previous commit, there's no need for 1.5 anymore. And in fact, it's just too dangerous to rely on 1.5 because of all the EGL craziness. For example, you might get a 1.5 EGL system library, but a driver might still give you 1.4 at runtime. If you assume that you can call 1.5 functions, you will probably get random crashes in this case. What a cursed API. (The same problem exists with EGL 1.3, but fortunately nothing seems to use that anymore. We can just ignore that problem.)
-rw-r--r--filters/user_filters.c2
-rw-r--r--wscript8
-rw-r--r--wscript_build.py2
3 files changed, 6 insertions, 6 deletions
diff --git a/filters/user_filters.c b/filters/user_filters.c
index 7fb164490e..e9ccec507d 100644
--- a/filters/user_filters.c
+++ b/filters/user_filters.c
@@ -93,7 +93,7 @@ const struct mp_user_filter_entry *vf_list[] = {
#if HAVE_D3D_HWACCEL
&vf_d3d11vpp,
#endif
-#if HAVE_EGL_HELPERS && HAVE_GL && HAVE_EGL15
+#if HAVE_EGL_HELPERS && HAVE_GL && HAVE_EGL
&vf_gpu,
#endif
};
diff --git a/wscript b/wscript
index ff946900da..b7fc0b474d 100644
--- a/wscript
+++ b/wscript
@@ -647,17 +647,17 @@ video_output_features = [
check_cc(fragment=load_fragment('gl_x11.c'),
use=['x11', 'libdl', 'pthreads']))
} , {
- 'name': '--egl15',
- 'desc': 'EGL 1.5',
+ 'name': '--egl',
+ 'desc': 'EGL 1.4',
'groups': [ 'gl' ],
'func': compose_checks(
check_pkg_config('egl'),
- check_statement(['EGL/egl.h'], 'int x[EGL_VERSION_1_5]')
+ check_statement(['EGL/egl.h'], 'int x[EGL_VERSION_1_4]')
),
} , {
'name': '--egl-x11',
'desc': 'OpenGL X11 EGL Backend',
- 'deps': 'x11 && egl15',
+ 'deps': 'x11 && egl',
'groups': [ 'gl' ],
'func': check_true,
} , {
diff --git a/wscript_build.py b/wscript_build.py
index 4c34d94c45..b1cba334da 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -416,7 +416,7 @@ def build(ctx):
( "video/filter/vf_d3d11vpp.c", "d3d-hwaccel" ),
( "video/filter/vf_fingerprint.c", "zimg" ),
( "video/filter/vf_format.c" ),
- ( "video/filter/vf_gpu.c", "egl-helpers && gl && egl15" ),
+ ( "video/filter/vf_gpu.c", "egl-helpers && gl && egl" ),
( "video/filter/vf_sub.c" ),
( "video/filter/vf_vapoursynth.c", "vapoursynth" ),
( "video/filter/vf_vavpp.c", "vaapi" ),