From dbe6bc5cfbd70678fd480570e56fbd9b7b476eef Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 20 Feb 2016 09:23:17 +0100 Subject: [PATCH] Move wayland context driver up the context driver foodchain, should hopefully have Gnome Wayland default to it instead of the slower X11/XCB context --- gfx/video_context_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/video_context_driver.c b/gfx/video_context_driver.c index 908bf8aa7e..687c58d106 100644 --- a/gfx/video_context_driver.c +++ b/gfx/video_context_driver.c @@ -46,14 +46,14 @@ static const gfx_ctx_driver_t *gfx_ctx_drivers[] = { #if defined(_WIN32) && defined(HAVE_OPENGL) &gfx_ctx_wgl, #endif +#if defined(HAVE_WAYLAND) + &gfx_ctx_wayland, +#endif #if defined(HAVE_X11) && !defined(HAVE_OPENGLES) #if defined(HAVE_OPENGL) || defined(HAVE_VULKAN) &gfx_ctx_x, #endif #endif -#if defined(HAVE_WAYLAND) - &gfx_ctx_wayland, -#endif #if defined(HAVE_X11) && defined(HAVE_OPENGL) && defined(HAVE_EGL) &gfx_ctx_x_egl, #endif