From c66caf5dce9331fd3e011873711a768adb28cf9d Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 7 Apr 2019 09:09:33 +0200 Subject: Simpler implementation of Fl_Cocoa_Window_Driver::resize() --- src/Fl_Gl_Device_Plugin.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Fl_Gl_Device_Plugin.cxx') diff --git a/src/Fl_Gl_Device_Plugin.cxx b/src/Fl_Gl_Device_Plugin.cxx index 2f7612c2c..016f45d35 100644 --- a/src/Fl_Gl_Device_Plugin.cxx +++ b/src/Fl_Gl_Device_Plugin.cxx @@ -47,6 +47,10 @@ public: virtual GLContext context(Fl_Widget *widget) { Fl_Gl_Window *glw = widget->as_gl_window(); return glw ? glw->context() : (GLContext)0; + } + virtual void valid(Fl_Widget *widget, char v) { + Fl_Gl_Window *glw = widget->as_gl_window(); + if (glw) glw->valid(v); } }; -- cgit v1.2.3