Wayland: fix error detection during call to glewInit().

This commit is contained in:
ManoloFLTK
2022-09-22 08:07:46 +02:00
parent debbba19ec
commit 6b63516890
2 changed files with 2 additions and 2 deletions

View File

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