From 3ee6a8db9f7b7d0b889c739a980208995931a27f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 14 Aug 2014 23:21:27 +0200 Subject: [PATCH] Move wayland context in context list below X11 - gets rid of 'Failed to connect to Wayland server context' warning when running in X11 --- gfx/gfx_context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/gfx_context.c b/gfx/gfx_context.c index 36d93848a3..d0b160ce1f 100644 --- a/gfx/gfx_context.c +++ b/gfx/gfx_context.c @@ -41,12 +41,12 @@ static const gfx_ctx_driver_t *gfx_ctx_drivers[] = { #if defined(_WIN32) && defined(HAVE_OPENGL) &gfx_ctx_wgl, #endif -#if defined(HAVE_WAYLAND) && defined(HAVE_OPENGL) && defined(HAVE_EGL) - &gfx_ctx_wayland, -#endif #if defined(HAVE_X11) && defined(HAVE_OPENGL) && !defined(HAVE_OPENGLES) &gfx_ctx_glx, #endif +#if defined(HAVE_WAYLAND) && defined(HAVE_OPENGL) && defined(HAVE_EGL) + &gfx_ctx_wayland, +#endif #if defined(HAVE_X11) && defined(HAVE_OPENGL) && defined(HAVE_EGL) &gfx_ctx_x_egl, #endif