diff options
author | wm4 <wm4@nowhere> | 2015-09-26 20:28:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-26 20:52:10 +0200 |
commit | 375886c7779c805e46f79ff3c648f9005bb47830 (patch) | |
tree | 9390a7fe5cdd70de979840471731d46c4d820878 /video/out/opengl/common.c | |
parent | 0aa548457f9b1ba6cb845b3b02a5d84ccec8c108 (diff) | |
download | mpv-375886c7779c805e46f79ff3c648f9005bb47830.tar.bz2 mpv-375886c7779c805e46f79ff3c648f9005bb47830.tar.xz |
vo_opengl: probe for EGL by default
Normally, we prefer GLX on X11. But for the VAAPI EGL interop, we
obviously want EGL. Since nvidia does not provide EGL with desktop GL
yet, we can leave it to the autoprobing. Just make sure some failure
messages don't unnecessarily show up in the nvidia case.
This breaks VAAPI GLX interop by default, but I don't care much. If
you use --hwdec=auto (which you should if you want hw decoding), this
should fallback to vaapi-copy instead.
Diffstat (limited to 'video/out/opengl/common.c')
-rw-r--r-- | video/out/opengl/common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c index 8eafc09d25..43d9375155 100644 --- a/video/out/opengl/common.c +++ b/video/out/opengl/common.c @@ -533,12 +533,12 @@ static const struct backend backends[] = { #if HAVE_GL_WAYLAND {"wayland", mpgl_set_backend_wayland}, #endif -#if HAVE_GL_X11 - {.driver = &mpgl_driver_x11}, -#endif #if HAVE_EGL_X11 {.driver = &mpgl_driver_x11egl}, #endif +#if HAVE_GL_X11 + {.driver = &mpgl_driver_x11}, +#endif }; int mpgl_find_backend(const char *name) |