From f3971319b9de0c52eaf8055e18bf02321440de1d Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 30 May 2018 20:20:47 +0000 Subject: MacOS: have Fl_OpenGL_Display_Device::capture_gl_rectangle() capture also the overlay of GL windows. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12938 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Gl_Window_Driver.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Gl_Window_Driver.H b/FL/Fl_Gl_Window_Driver.H index 63d08fedf..1b5d36bfd 100644 --- a/FL/Fl_Gl_Window_Driver.H +++ b/FL/Fl_Gl_Window_Driver.H @@ -59,7 +59,6 @@ public: virtual void swap_buffers() {} virtual void resize(int is_a_resize, int w, int h) {} virtual char swap_type(); - virtual void flush_context() {} virtual int flush_begin(char& valid_f) {return 0;} virtual void hide_overlay(void *& overlay) {} static Fl_Gl_Choice *find_begin(int m, const int *alistp); @@ -101,6 +100,7 @@ class NSOpenGLPixelFormat; class Fl_Cocoa_Gl_Window_Driver : public Fl_Gl_Window_Driver { friend class Fl_Gl_Window_Driver; + friend class Fl_OpenGL_Display_Device; Fl_Cocoa_Gl_Window_Driver(Fl_Gl_Window *win) : Fl_Gl_Window_Driver(win) {} virtual float pixels_per_unit(); virtual void before_show(int& need_redraw); @@ -110,7 +110,7 @@ class Fl_Cocoa_Gl_Window_Driver : public Fl_Gl_Window_Driver { virtual void swap_buffers(); virtual void resize(int is_a_resize, int w, int h); virtual char swap_type(); - virtual void flush_context(); + void flush_context(); virtual Fl_Gl_Choice *find(int m, const int *alistp); virtual GLContext create_gl_context(Fl_Window* window, const Fl_Gl_Choice* g, int layer = 0); virtual void set_gl_context(Fl_Window* w, GLContext context); -- cgit v1.2.3