1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-18 13:14:36 +00:00

gl_common: add wayland backend before x11 backend

This commit is contained in:
Andreas Sinz 2013-09-14 16:30:03 +02:00 committed by wm4
parent 2f165ee12b
commit 44b6696279

View File

@ -858,11 +858,13 @@ static struct backend backends[] = {
#ifdef CONFIG_GL_WIN32
{"win", mpgl_set_backend_w32},
#endif
#ifdef CONFIG_GL_X11
{"x11", mpgl_set_backend_x11},
#endif
//Add the wayland backend before x11, in order to probe for a wayland-server before a x11-server and avoid using xwayland
#ifdef CONFIG_GL_WAYLAND
{"wayland", mpgl_set_backend_wayland},
#endif
#ifdef CONFIG_GL_X11
{"x11", mpgl_set_backend_x11},
#endif
{0}
};