diff options
| author | Manolo Gouy <Manolo> | 2018-11-02 12:21:06 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-11-02 12:21:06 +0000 |
| commit | 09abaf433905d46835f5864c65fe219259381949 (patch) | |
| tree | 6357df6bb7c48a1ff4ac81d1479c471256390c13 /src/Fl_Gl_Choice.cxx | |
| parent | 8a04aeb146fe922723a3c0188d453601b0063078 (diff) | |
Further fix to support gl_start()/gl_finish() under MacOS platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Choice.cxx')
| -rw-r--r-- | src/Fl_Gl_Choice.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Gl_Choice.cxx b/src/Fl_Gl_Choice.cxx index 7aa9171b0..93967cd15 100644 --- a/src/Fl_Gl_Choice.cxx +++ b/src/Fl_Gl_Choice.cxx @@ -86,11 +86,13 @@ static Fl_Window* cached_window; #ifdef FL_CFG_GFX_QUARTZ # include "drivers/Cocoa/Fl_Cocoa_Window_Driver.H" +# include "Fl_Screen_Driver.H" extern void gl_texture_reset(); Fl_Gl_Choice *Fl_Cocoa_Gl_Window_Driver::find(int m, const int *alistp) { + Fl::screen_driver()->open_display(); // useful when called through gl_start() Fl_Gl_Choice *g = Fl_Gl_Window_Driver::find_begin(m, alistp); if (g) return g; NSOpenGLPixelFormat* fmt = Fl_Cocoa_Window_Driver::mode_to_NSOpenGLPixelFormat(m, alistp); |
