From 2c1effc385cb1b36d9ca5261caa944b0c51000c2 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 30 Aug 2022 08:15:21 +0200 Subject: [PATCH] Wayland: Fix Fl_Gl_Window_Driver::newGlWindowDriver() for shared libs --- src/drivers/Wayland/fl_wayland_gl_platform_init.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/Wayland/fl_wayland_gl_platform_init.cxx b/src/drivers/Wayland/fl_wayland_gl_platform_init.cxx index f80ee67ba..81ce562a9 100644 --- a/src/drivers/Wayland/fl_wayland_gl_platform_init.cxx +++ b/src/drivers/Wayland/fl_wayland_gl_platform_init.cxx @@ -22,6 +22,6 @@ Fl_Gl_Window_Driver *Fl_Gl_Window_Driver::newGlWindowDriver(Fl_Gl_Window *w) { - if (Fl_Wayland_Screen_Driver::wl_display) return new Fl_Wayland_Gl_Window_Driver(w); + if (fl_wl_display()) return new Fl_Wayland_Gl_Window_Driver(w); return new Fl_X11_Gl_Window_Driver(w); }