Wayland: Fix Fl_Gl_Window_Driver::newGlWindowDriver() for shared libs

This commit is contained in:
ManoloFLTK 2022-08-30 08:15:21 +02:00
parent 95c851fda1
commit 2c1effc385

View File

@ -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);
}