diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-08-30 08:15:21 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-08-30 08:15:21 +0200 |
| commit | 2c1effc385cb1b36d9ca5261caa944b0c51000c2 (patch) | |
| tree | 06dc76105ea945c533c6770b881b74b8b4c6a13c /src/drivers | |
| parent | 95c851fda10d5305082619dc977f63aa5df0929b (diff) | |
Wayland: Fix Fl_Gl_Window_Driver::newGlWindowDriver() for shared libs
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Wayland/fl_wayland_gl_platform_init.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
