summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-11-21 11:55:04 +0000
committerManolo Gouy <Manolo>2018-11-21 11:55:04 +0000
commit7e5b04cab5936e78fedd95323b67946b265bd7fe (patch)
tree08ce0d5da86cd40c59e882973fa3a34fd5b99282 /src
parent3e6d8903d46f932a45980c139eb08bf0a11725dc (diff)
macOS: remove two useless statements for layer-backed OpenGL windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 7f4a82450..68e1cb353 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -2202,11 +2202,9 @@ static CGContextRef prepare_bitmap_for_layer(int w, int h ) {
// 1st drawing of GL window
[self did_view_resolution_change];
}
- through_drawRect = YES;
window->clear_damage(FL_DAMAGE_ALL);
d->Fl_Window_Driver::flush();
window->clear_damage();
- through_drawRect = NO;
if (fl_mac_os_version < 101401) {
if (window->parent()) window->redraw(); // useful during resize of GL subwindow
}