summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-12-13 10:41:15 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-12-13 10:41:15 +0100
commit9738e52511ce0ca87570f53bad29cbc4ed9ce657 (patch)
treedd6863ac052a9a5bafd5f826d588e9d35d84edc5 /src/drivers
parent36d34983bb94678c96143e6a7a8538594c588b7d (diff)
macOS platform + GLUT: fix crash with glut_test - cont'd
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm2
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() {