aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar dudemanguy <random342@airmail.cc>2018-11-09 10:06:09 -0600
committerGravatar Jan Ekström <jeebjp@gmail.com>2018-11-19 00:26:39 +0200
commit8b6064de76ce5472a7d00b3eb7c4e38d01754330 (patch)
treedd6ad1226592670860551b98af8eb258980e1d7e
parentb8bb5329a578a0335d3470293108c98792633831 (diff)
gpu: prefer wayland context on autodetect
-rw-r--r--video/out/gpu/context.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/gpu/context.c b/video/out/gpu/context.c
index 7964e12623..85f1aa7667 100644
--- a/video/out/gpu/context.c
+++ b/video/out/gpu/context.c
@@ -80,6 +80,9 @@ static const struct ra_ctx_fns *contexts[] = {
#if HAVE_GL_DXINTEROP
&ra_ctx_dxgl,
#endif
+#if HAVE_GL_WAYLAND
+ &ra_ctx_wayland_egl,
+#endif
#if HAVE_GL_X11
&ra_ctx_glx_probe,
#endif
@@ -89,9 +92,6 @@ static const struct ra_ctx_fns *contexts[] = {
#if HAVE_GL_X11
&ra_ctx_glx,
#endif
-#if HAVE_GL_WAYLAND
- &ra_ctx_wayland_egl,
-#endif
#if HAVE_EGL_DRM
&ra_ctx_drm_egl,
#endif