|
|
commit 2c1effc385cb1b36d9ca5261caa944b0c51000c2
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Tue Aug 30 08:15:21 2022 +0200
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Tue Aug 30 08:15:21 2022 +0200
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 src/drivers/Wayland/fl_wayland_gl_platform_init.cxx src/drivers/Wayland/fl_wayland_gl_platform_init.cxx
index f80ee67..81ce562 100644
--- src/drivers/Wayland/fl_wayland_gl_platform_init.cxx
+++ 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);
}
[ Direct Link to Message ] | |
|
| |