From bd87598af9c27315054814be4980806dd332f69c Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 1 Oct 2015 22:57:02 +0200 Subject: vo_opengl: wayland: switch to new internal API --- video/out/opengl/common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out/opengl/common.c') 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}, -- cgit v1.2.3