summaryrefslogtreecommitdiff
path: root/documentation/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-21 15:15:55 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-21 15:15:55 +0200
commitdebbba19ecf88725d3a467e55b519fa0ec8a42c0 (patch)
tree8b66bae540979d44e34ce97eebc71b14143cd5dd /documentation/src
parent75dd467dc5f85b66c00a6e6bc8fe177395a0a074 (diff)
Improve docs of Fl_Copy_Surface and use of OpenGL 3.
Diffstat (limited to 'documentation/src')
-rw-r--r--documentation/src/opengl.dox2
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/src/opengl.dox b/documentation/src/opengl.dox
index f826323df..d1a36be11 100644
--- a/documentation/src/opengl.dox
+++ b/documentation/src/opengl.dox
@@ -628,7 +628,7 @@ Testing whether the glewInit() call is successful is to be done as follows:
GLenum err = glewInit(); // defines pters to functions of OpenGL V 1.2 and above
# ifdef FLTK_USE_WAYLAND
// glewInit returns GLEW_ERROR_NO_GLX_DISPLAY with Wayland
- 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 != GLEW_OK) Fl::warning("glewInit() failed returning %u", err);
#endif // ! __APPLE__