From 350292fb3c4037f90ba53f72e3d7cf08a7b3e196 Mon Sep 17 00:00:00 2001 From: DarkOK Date: Mon, 3 Apr 2023 15:02:50 +0100 Subject: Allow toggling Wayland support (#1654) --- src/frontend/duckstation/gl/context.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/frontend/duckstation') diff --git a/src/frontend/duckstation/gl/context.cpp b/src/frontend/duckstation/gl/context.cpp index 9f21cd6..a0a4183 100644 --- a/src/frontend/duckstation/gl/context.cpp +++ b/src/frontend/duckstation/gl/context.cpp @@ -15,7 +15,9 @@ Log_SetChannel(GL::Context); #elif defined(__APPLE__) #include "context_agl.h" #else +#ifdef WAYLAND_ENABLED #include "context_egl_wayland.h" +#endif #include "context_egl_x11.h" #include "context_glx.h" #endif @@ -80,8 +82,10 @@ std::unique_ptr Context::Create(const WindowInfo& wi, const Version context = ContextGLX::Create(wi, versions_to_try, num_versions_to_try); } +#ifdef WAYLAND_ENABLED if (wi.type == WindowInfo::Type::Wayland) context = ContextEGLWayland::Create(wi, versions_to_try, num_versions_to_try); +#endif #endif if (!context) -- cgit v1.2.3