From 3fbb1c4af29d546a59461207a53dd135d5c1d718 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 19 Jul 2024 07:33:03 +0200 Subject: [PATCH] Remove obsolete content in documentation of Fl_Gl_Window see "About the documentation of OpenGL usage in FLTK" in fltk.coredev --- documentation/src/opengl.dox | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/documentation/src/opengl.dox b/documentation/src/opengl.dox index 14f33a625..c1ce8a9fd 100644 --- a/documentation/src/opengl.dox +++ b/documentation/src/opengl.dox @@ -39,34 +39,7 @@ To make a subclass of Fl_Gl_Window, you must provide: If your subclass provides static controls in the window, they must be redrawn whenever the \p FL_DAMAGE_ALL bit is set -in the value returned by \p damage(). For double-buffered -windows you will need to surround the drawing code with the -following code to make sure that both buffers are redrawn: - -\code -#ifndef MESA -glDrawBuffer(GL_FRONT_AND_BACK); -#endif // !MESA -... draw stuff here ... -#ifndef MESA -glDrawBuffer(GL_BACK); -#endif // !MESA -\endcode - -
Note: - - If you are using the Mesa graphics library, the call - to \p glDrawBuffer() is not required and will slow - down drawing considerably. The preprocessor instructions - shown above will optimize your code based upon the - graphics library used. - - | - -