diff options
Diffstat (limited to 'src/frontend/duckstation')
| -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; |