From 2aace1b5037cf106117c3cfc3b0c74e131b3a558 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 23 Sep 2020 19:46:39 +1000 Subject: [PATCH] GL/Context: Don't choke on X11+Wayland --- src/common/gl/context.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/gl/context.cpp b/src/common/gl/context.cpp index 3e5f5cecd..277ec83c0 100644 --- a/src/common/gl/context.cpp +++ b/src/common/gl/context.cpp @@ -16,10 +16,13 @@ Log_SetChannel(GL::Context); #endif #ifdef USE_EGL +#if defined(USE_X11) || defined(USE_WAYLAND) #if defined(USE_X11) #include "context_egl_x11.h" -#elif defined(USE_WAYLAND) +#endif +#if defined(USE_WAYLAND) #include "context_egl_wayland.h" +#endif #elif defined(ANDROID) #include "context_egl_android.h" #else