From 0fdef887d0ad8ad0aa597f8a67079cb670ca18c1 Mon Sep 17 00:00:00 2001
From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
Date: Mon, 4 Jul 2022 14:44:23 +0200
Subject: Documentation: add Wayland-related information for use of OpenGL 3.
---
FL/Fl_Gl_Window.H | 2 +-
documentation/src/opengl.dox | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/FL/Fl_Gl_Window.H b/FL/Fl_Gl_Window.H
index 7d99f1a03..ec9179bfb 100644
--- a/FL/Fl_Gl_Window.H
+++ b/FL/Fl_Gl_Window.H
@@ -169,7 +169,7 @@ public:
changes the current context.
The FL_OPENGL3 flag is required to access OpenGL version 3 or more
- under the X11 and MacOS platforms; it's optional under Windows.
+ under the X11 and MacOS platforms; it's optional under Windows and Wayland.
See more details in \ref opengl3.
\version the FL_OPENGL3 flag appeared in version 1.3.4
diff --git a/documentation/src/opengl.dox b/documentation/src/opengl.dox
index c80d4fd85..f826323df 100644
--- a/documentation/src/opengl.dox
+++ b/documentation/src/opengl.dox
@@ -550,7 +550,7 @@ and OpenGL 3.
To access OpenGL 3.0 (or higher versions), use the FL_OPENGL3 flag
when calling Fl_Gl_Window::mode(int a) or glutInitDisplayMode().
-On the Windows and Unix/Linux platforms, FLTK creates contexts
+On the Windows, X11, and Wayland platforms, FLTK creates contexts
implementing the highest OpenGL version supported by the hardware.
Such contexts may also be compatible with lower OpenGL versions.
Access to functions from OpenGL
@@ -563,7 +563,7 @@ GLEW is possible but not necessary. FLTK creates contexts for OpenGL
versions 1 and 2 without the FL_OPENGL3
flag and for OpenGL versions 3.2 and above with it.
-\par GLEW installation (Unix/Linux and Windows platforms)
+\par GLEW installation (X11, Wayland, and Windows platforms)
GLEW is available as a package for most Linux distributions and in source
form at http://glew.sourceforge.net/.
For the Windows platform, a Visual Studio static library (glew32.lib) can
@@ -636,7 +636,7 @@ Testing whether the glewInit() call is successful is to be done as follows:
\par Changes in the build process
-Link with libGLEW.so (on Unix/Linux), libglew32.a (with MinGW) or glew32.lib
+Link with libGLEW.so (with X11 or Wayland), libglew32.a (with MinGW) or glew32.lib
(with MS Visual Studio); no change is needed on the Mac OS platform.
\htmlonly
--
cgit v1.2.3