fltk/src/drivers/X11
Albrecht Schlosser 1fd6f0dd3a Fix STR 3458: "GLUT compatibility mode segfaults"
... "when there's no current window".

Silently ignore GLUT function calls that need a current window if the
current window is NULL, return 0 from functions that return an 'int'.

Check if window is shown in Fl_X11_Gl_Window_Driver::swap_buffers().
This would issue "XRequest.nnn: GLXBadDrawable 0x0" on X11 otherwise.

Note: the chosen implementation to ignore GLUT calls silently appears
to be compatible with GLUT (3.7) whereas FreeGLUT 3.0 would issue error
messages and exit. The latter could be implemented as well but would
be much more work.
2023-10-07 17:14:11 +02:00
..
fl_X11_platform_init.cxx Remove duplication of Pango standard font names 2023-04-14 08:15:50 +02:00
Fl_X11_Gl_Window_Driver.cxx Fix STR 3458: "GLUT compatibility mode segfaults" 2023-10-07 17:14:11 +02:00
Fl_X11_Gl_Window_Driver.H Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
Fl_X11_Screen_Driver.cxx Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
Fl_X11_Screen_Driver.H Use FL_OVERRIDE for all overridden virtual methods (#611) 2022-12-30 19:14:36 +01:00
Fl_X11_Window_Driver.cxx Replace internal fl_create_offscreen() calls by new Fl_Image_Surface 2023-04-23 10:03:02 +02:00
Fl_X11_Window_Driver.H Fl_Window_Driver::destroy_double_buffer() does not need overrides 2023-04-21 16:27:08 +02:00