FLTK logo

[master] debbba1 - Improve docs of Fl_Copy_Surface and use of OpenGL 3.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] debbba1 - Improve docs of Fl_Copy_Surface and use of OpenGL 3. "ManoloFLTK" Sep 21, 2022  
 
commit debbba19ecf88725d3a467e55b519fa0ec8a42c0
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Wed Sep 21 15:15:55 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Wed Sep 21 15:15:55 2022 +0200

    Improve docs of Fl_Copy_Surface and use of OpenGL 3.

 FL/Fl_Copy_Surface.H         | 2 +-
 documentation/src/opengl.dox | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git FL/Fl_Copy_Surface.H FL/Fl_Copy_Surface.H
index cf62e1f..9b195e9 100644
--- FL/Fl_Copy_Surface.H
+++ FL/Fl_Copy_Surface.H
@@ -44,7 +44,7 @@
  \li Mac OS: The graphical data are copied to the clipboard (a.k.a. pasteboard) in two 'flavors':
  1) in vectorial form as PDF data; 2) in bitmap form as a TIFF image.
  Applications to which the clipboard content is pasted can use the flavor that suits them best.
- \li X11: the graphical data are copied to the clipboard as an image in BMP format.
+ \li X11 and Wayland: the graphical data are copied to the clipboard as an image in BMP format.
 */
 class FL_EXPORT Fl_Copy_Surface : public Fl_Widget_Surface {
 private:
diff --git documentation/src/opengl.dox documentation/src/opengl.dox
index f826323..d1a36be 100644
--- documentation/src/opengl.dox
+++ 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__
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.