From 70d97dd76d53b4042f9b9813c3dd3415d51f18b9 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 10 Jan 2014 16:50:55 +0000 Subject: 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 --- src/Fl_Gl_Device_Plugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3