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
This commit is contained in:
Manolo Gouy 2014-01-10 16:50:55 +00:00
parent 4d4ffb4d0a
commit 70d97dd76d
1 changed files with 1 additions and 1 deletions

View File

@ -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);