summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-06-26 15:00:52 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-06-26 15:00:52 +0200
commit81615bbe0b96dc8640cee453b86bf8b4363b175a (patch)
treee92f89ca66633e6e995352242a8cc70fb63d3ff8 /src
parent5196d66825dbcccc9edbd4d7480202480282c3d4 (diff)
Fix Fl_Cocoa_Gl_Window_Driver::resize()
The additional [NSOpenGLContext flushBuffer] messages appear necessary when an Fl_Tile contains 2 or more GL subwindows.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm2
1 files changed, 2 insertions, 0 deletions
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];
}
}