summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Device_Plugin.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-07 09:09:33 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-07 09:09:33 +0200
commitc66caf5dce9331fd3e011873711a768adb28cf9d (patch)
tree20a0be9cad0737a97da2ddadf497268f52415ab5 /src/Fl_Gl_Device_Plugin.cxx
parentcc955d27a09ef834d94ad798458093463e486dfd (diff)
Simpler implementation of Fl_Cocoa_Window_Driver::resize()
Diffstat (limited to 'src/Fl_Gl_Device_Plugin.cxx')
-rw-r--r--src/Fl_Gl_Device_Plugin.cxx4
1 files changed, 4 insertions, 0 deletions
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);
}
};