diff options
author | DarkOK <darkphoenixok@gmail.com> | 2023-04-03 15:02:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 16:02:50 +0200 |
commit | 350292fb3c4037f90ba53f72e3d7cf08a7b3e196 (patch) | |
tree | 611b238573353e434422bd5f78989a909297041a /src/frontend/duckstation/gl/context.cpp | |
parent | 41b95b9c8fb91d87d867992cb9d908aba1dfb4d9 (diff) |
Allow toggling Wayland support (#1654)
Diffstat (limited to 'src/frontend/duckstation/gl/context.cpp')
-rw-r--r-- | src/frontend/duckstation/gl/context.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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,9 +82,11 @@ std::unique_ptr<GL::Context> 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) return nullptr; |