summaryrefslogtreecommitdiff
path: root/FL/Fl_Gl_Window.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-07-18 16:36:24 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-07-18 16:36:24 +0200
commit092962464676aaa3a5f27d9bf97e9c1957bb62e8 (patch)
treef03f745d00d3ff99f9eac0beca0fc7462f0e147c /FL/Fl_Gl_Window.H
parent3e9c77b62ab4748e2b4689c89a81561f69d0b1ba (diff)
Document more accurately use of FL_OPENGL3 flag with Fl_Gl_Window's
Diffstat (limited to 'FL/Fl_Gl_Window.H')
-rw-r--r--FL/Fl_Gl_Window.H8
1 files changed, 6 insertions, 2 deletions
diff --git a/FL/Fl_Gl_Window.H b/FL/Fl_Gl_Window.H
index 67c3c4050..bb9b27709 100644
--- a/FL/Fl_Gl_Window.H
+++ b/FL/Fl_Gl_Window.H
@@ -173,8 +173,12 @@ public:
mode() must not be called within draw() since it
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 and Wayland.
+ The FL_OPENGL3 flag is recommended to use OpenGL version 3 or more.
+ This flag is required (not just recommended) if OpenGL version 3 is in use
+ and at least one of these conditions apply:
+ - the program runs on the macOS platform;
+ - the Fl_Gl_Window has child widgets.
+
See more details in \ref opengl3.
\version the <tt>FL_OPENGL3</tt> flag appeared in version 1.3.4