diff options
author | wm4 <wm4@nowhere> | 2015-05-13 23:55:22 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-14 00:05:54 +0200 |
commit | fa39dadb059bb81839b6e97e74e5b83b7c0a2a0f (patch) | |
tree | d533346126dbe0191f0133593125c177ea63b4ab /video/out/gl_common.c | |
parent | df97c30e0e324a7a51c3cb4a24eb27fcf30462b2 (diff) | |
download | mpv-fa39dadb059bb81839b6e97e74e5b83b7c0a2a0f.tar.bz2 mpv-fa39dadb059bb81839b6e97e74e5b83b7c0a2a0f.tar.xz |
x11: use new OpenGL backend API
Diffstat (limited to 'video/out/gl_common.c')
-rw-r--r-- | video/out/gl_common.c | 4 |
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}, |