summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-01 22:57:02 +0200
committerwm4 <wm4@nowhere>2015-10-01 22:57:02 +0200
commitbd87598af9c27315054814be4980806dd332f69c (patch)
tree4d902e7cc2c0b6f9ab7cee220665213115a0aa5b /video/out/opengl/common.c
parentf4d62da8f028bb2359a9a4c6792690cfa5bc8930 (diff)
downloadmpv-bd87598af9c27315054814be4980806dd332f69c.tar.bz2
mpv-bd87598af9c27315054814be4980806dd332f69c.tar.xz
vo_opengl: wayland: switch to new internal API
Diffstat (limited to 'video/out/opengl/common.c')
-rw-r--r--video/out/opengl/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c
index f5bb45d376..765a499706 100644
--- a/video/out/opengl/common.c
+++ b/video/out/opengl/common.c
@@ -501,6 +501,7 @@ struct backend {
extern const struct mpgl_driver mpgl_driver_x11;
extern const struct mpgl_driver mpgl_driver_x11egl;
extern const struct mpgl_driver mpgl_driver_cocoa;
+extern const struct mpgl_driver mpgl_driver_wayland;
static const struct backend backends[] = {
#if HAVE_RPI
@@ -515,7 +516,7 @@ static const struct backend backends[] = {
//Add the wayland backend before x11, in order to probe for a wayland-server before a x11-server and avoid using xwayland
#if HAVE_GL_WAYLAND
- {"wayland", mpgl_set_backend_wayland},
+ {.driver = &mpgl_driver_wayland},
#endif
#if HAVE_EGL_X11
{.driver = &mpgl_driver_x11egl},