diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-12-13 10:41:15 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-12-13 10:41:15 +0100 |
| commit | 9738e52511ce0ca87570f53bad29cbc4ed9ce657 (patch) | |
| tree | dd6863ac052a9a5bafd5f826d588e9d35d84edc5 /src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm | |
| parent | 36d34983bb94678c96143e6a7a8538594c588b7d (diff) | |
macOS platform + GLUT: fix crash with glut_test - cont'd
Diffstat (limited to 'src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm b/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm index 0b30df1df..808a6e03a 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm +++ b/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm @@ -242,7 +242,7 @@ void Fl_Cocoa_Gl_Window_Driver::delete_gl_context(GLContext context) { void Fl_Cocoa_Gl_Window_Driver::make_overlay_current() { // this is not very useful, but unfortunately, Apple decided // that front buffer drawing can no longer (OS X 10.4) be supported on their platforms. - pWindow->make_current(); + if (pWindow->shown()) pWindow->make_current(); } void Fl_Cocoa_Gl_Window_Driver::redraw_overlay() { |
