diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 323a634bf..34a2908af 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2767,15 +2767,14 @@ void Fl_Window::fullscreen_off_x(int X, int Y, int W, int H) { */ void Fl_X::flush() { - if (through_drawRect) { - if (w->as_gl_window()) { - w->flush(); - } else { - make_current_counts = 1; - w->flush(); - make_current_counts = 0; - Fl_X::q_release_context(); - } + if (w->as_gl_window()) { + w->flush(); + return; + } else if (through_drawRect) { + make_current_counts = 1; + w->flush(); + make_current_counts = 0; + Fl_X::q_release_context(); return; } // have Cocoa immediately redraw the window's view |
