From 81615bbe0b96dc8640cee453b86bf8b4363b175a Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 26 Jun 2023 15:00:52 +0200 Subject: Fix Fl_Cocoa_Gl_Window_Driver::resize() The additional [NSOpenGLContext flushBuffer] messages appear necessary when an Fl_Tile contains 2 or more GL subwindows. --- src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/drivers') diff --git a/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm b/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm index 74468ae96..dd69ad344 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm +++ b/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm @@ -358,8 +358,10 @@ char Fl_Cocoa_Gl_Window_Driver::swap_type() {return copy;} void Fl_Cocoa_Gl_Window_Driver::resize(int is_a_resize, int w, int h) { if (pWindow->shown()) apply_scissor(); [(NSOpenGLContext*)pWindow->context() update]; + [(NSOpenGLContext*)pWindow->context() flushBuffer]; if (gl1ctxt) { [gl1ctxt update]; + [gl1ctxt flushBuffer]; } } -- cgit v1.2.3