--- a/src/unix/glegl.cpp 2023-11-08 22:53:55.000000000 +0000 +++ b/src/unix/glegl.cpp 2024-04-30 19:57:34.482151708 +0000 @@ -43,8 +43,6 @@ static const char* TRACE_EGL = "glegl"; -#ifdef GDK_WINDOWING_WAYLAND - #include "wx/hashset.h" namespace @@ -58,8 +56,6 @@ } // anonymous namespace -#endif // GDK_WINDOWING_WAYLAND - // ---------------------------------------------------------------------------- // wxGLContextAttrs: OpenGL rendering context attributes // ---------------------------------------------------------------------------- @@ -633,9 +629,9 @@ DestroyWaylandSubsurface(); g_clear_pointer(&m_wlEGLWindow, wl_egl_window_destroy); g_clear_pointer(&m_wlSurface, wl_surface_destroy); +#endif gs_alreadySetSwapInterval.erase(this); -#endif } void wxGLCanvasEGL::CreateWaylandSubsurface()