mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 20:51:34 +08:00
Wayland+GLUT: fix crash in glut_test application
This commit is contained in:
@@ -1279,7 +1279,8 @@ static const struct wl_callback_listener sync_listener = {
|
||||
|
||||
|
||||
static void do_atexit() {
|
||||
if (Fl_Wayland_Screen_Driver::wl_display) {
|
||||
if (Fl_Wayland_Screen_Driver::wl_display &&
|
||||
(!Fl::first_window() || !Fl::first_window()->as_gl_window())) {
|
||||
wl_display_roundtrip(Fl_Wayland_Screen_Driver::wl_display);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user