summaryrefslogtreecommitdiffstats
path: root/video/out/gl_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_common.c')
-rw-r--r--video/out/gl_common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/gl_common.c b/video/out/gl_common.c
index 31670ce75a..518f962d2c 100644
--- a/video/out/gl_common.c
+++ b/video/out/gl_common.c
@@ -528,6 +528,8 @@ struct backend {
const struct mpgl_driver *driver;
};
+extern const struct mpgl_driver mpgl_driver_x11;
+
static const struct backend backends[] = {
#if HAVE_RPI_GLES
{"rpi", mpgl_set_backend_rpi},
@@ -544,7 +546,7 @@ static const struct backend backends[] = {
{"wayland", mpgl_set_backend_wayland},
#endif
#if HAVE_GL_X11
- {"x11", mpgl_set_backend_x11},
+ {.driver = &mpgl_driver_x11},
#endif
#if HAVE_EGL_X11
{"x11egl", mpgl_set_backend_x11egl},