summaryrefslogtreecommitdiff
path: root/src/Fl_Device.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Device.cxx')
-rw-r--r--src/Fl_Device.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Fl_Device.cxx b/src/Fl_Device.cxx
index d43517b25..1166c7582 100644
--- a/src/Fl_Device.cxx
+++ b/src/Fl_Device.cxx
@@ -122,6 +122,15 @@ Fl_Surface_Device *Fl_Surface_Device::pop_current()
return surface_;
}
+Fl_Device_Plugin *Fl_Device_Plugin::opengl_plugin() {
+ static Fl_Device_Plugin *pi = NULL;
+ if (!pi) {
+ Fl_Plugin_Manager pm("fltk:device");
+ pi = (Fl_Device_Plugin*)pm.plugin("opengl.device.fltk.org");
+ }
+ return pi;
+}
+
//
// End of "$Id$".
//