summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Window.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-05-30 20:20:47 +0000
committerManolo Gouy <Manolo>2018-05-30 20:20:47 +0000
commitf3971319b9de0c52eaf8055e18bf02321440de1d (patch)
tree1bd4c60ff25133194ce01e2afaa3c93650316b22 /src/Fl_Gl_Window.cxx
parent8ef4035b6da95acecbda10b7a9f7d3f93d2389b7 (diff)
MacOS: have Fl_OpenGL_Display_Device::capture_gl_rectangle() capture also the overlay of GL windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12938 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Window.cxx')
-rw-r--r--src/Fl_Gl_Window.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx
index b01313165..6d7479842 100644
--- a/src/Fl_Gl_Window.cxx
+++ b/src/Fl_Gl_Window.cxx
@@ -238,7 +238,6 @@ void Fl_Gl_Window::flush() {
}
}
- pGlWindowDriver->flush_context();
if (overlay==this && SWAP_TYPE != SWAP) { // fake overlay in front buffer
glDrawBuffer(GL_FRONT);
draw_overlay();
@@ -588,10 +587,8 @@ void Fl_Cocoa_Gl_Window_Driver::swap_buffers() {
glMatrixMode(matrixmode);
glRasterPos3f(pos[0], pos[1], pos[2]); // restore original glRasterPos
}
- /* // nothing to do here under Cocoa because [NSOpenGLContext -flushBuffer] done later replaces it
else
- aglSwapBuffers((AGLContext)context_);
- */
+ flush_context();//aglSwapBuffers((AGLContext)context_);
}
void Fl_Cocoa_Gl_Window_Driver::resize(int is_a_resize, int unused, int also) {