diff --git a/src/Fl_Gl_Choice.cxx b/src/Fl_Gl_Choice.cxx index 6e270f60c..5960514d8 100644 --- a/src/Fl_Gl_Choice.cxx +++ b/src/Fl_Gl_Choice.cxx @@ -169,6 +169,7 @@ Fl_Gl_Choice *Fl_Gl_Choice::find(int m, const int *alistp) { } #elif defined(__APPLE_QUARTZ__) + fl_open_display(); NSOpenGLPixelFormat* fmt = Fl_X::mode_to_NSOpenGLPixelFormat(m, alistp); if (!fmt) return 0;