Fix Fl_Cocoa_Gl_Window_Driver::resize()

The additional [NSOpenGLContext flushBuffer] messages appear necessary when an Fl_Tile contains
2 or more GL subwindows.
This commit is contained in:
ManoloFLTK 2023-06-26 15:00:52 +02:00
parent 5196d66825
commit 81615bbe0b

View File

@ -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];
}
}