Remove 81615bb causing GL window to blink when resizing on macOS (#813)

This commit is contained in:
ManoloFLTK 2023-10-31 16:52:59 +01:00
parent eb759cb118
commit 0e41ca820d

View File

@ -358,10 +358,8 @@ 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];
}
}