mirror of
https://github.com/fltk/fltk.git
synced 2025-12-16 01:26:37 +08:00
Wayland: fix error detection during call to glewInit().
This commit is contained in:
@@ -149,7 +149,7 @@ public:
|
||||
# ifdef FLTK_USE_WAYLAND
|
||||
// glewInit returns GLEW_ERROR_NO_GLX_DISPLAY with Wayland
|
||||
// see https://github.com/nigels-com/glew/issues/273
|
||||
if (err == GLEW_ERROR_NO_GLX_DISPLAY) err = GLEW_OK;
|
||||
if (fl_wl_display() && err == GLEW_ERROR_NO_GLX_DISPLAY) err = GLEW_OK;
|
||||
# endif
|
||||
if (err) Fl::warning("glewInit() failed returning %u", err);
|
||||
else add_output("Using GLEW %s\n", glewGetString(GLEW_VERSION));
|
||||
|
||||
Reference in New Issue
Block a user