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