summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2014-01-10 16:50:55 +0000
committerManolo Gouy <Manolo>2014-01-10 16:50:55 +0000
commit70d97dd76d53b4042f9b9813c3dd3415d51f18b9 (patch)
tree26460645f3a8c7e4fb8046d342cb5c448e24e35b /src
parent4d4ffb4d0ab354947be06aeccff46a174017b01e (diff)
A redraw of the GL window may be necessary before printing, at least with the glpuzzle demo on Mac OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10051 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Gl_Device_Plugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Gl_Device_Plugin.cxx b/src/Fl_Gl_Device_Plugin.cxx
index ca46d2759..fbcb2f613 100644
--- a/src/Fl_Gl_Device_Plugin.cxx
+++ b/src/Fl_Gl_Device_Plugin.cxx
@@ -39,7 +39,7 @@ static void print_gl_window(Fl_Gl_Window *glw, int x, int y, int height)
#else
const int bytesperpixel = 3;
#endif
- glw->make_current();
+ glw->flush(); // forces a GL redraw necessary for the glpuzzle demo
// Read OpenGL context pixels directly.
// For extra safety, save & restore OpenGL states that are changed
glPushClientAttrib(GL_CLIENT_PIXEL_STORE_BIT);