diff options
| author | ManoloFLTK <manolo> | 2018-12-05 11:04:58 +0100 |
|---|---|---|
| committer | ManoloFLTK <manolo> | 2018-12-05 11:04:58 +0100 |
| commit | 3bcb1256bb3b5c6c3600bef5736936cdb613269c (patch) | |
| tree | 698a8d6ad6525f6296de5d39d2b8356a1e5ae99a /src/Fl_Widget_Surface.cxx | |
| parent | fb4cb7165583b612ba95563445fa9d0685e2a75a (diff) | |
New static member function: Fl_Device_Plugin *Fl_Device_Plugin::opengl_plugin()
Diffstat (limited to 'src/Fl_Widget_Surface.cxx')
| -rw-r--r-- | src/Fl_Widget_Surface.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_Widget_Surface.cxx b/src/Fl_Widget_Surface.cxx index cdeb3cf17..5c6c45432 100644 --- a/src/Fl_Widget_Surface.cxx +++ b/src/Fl_Widget_Surface.cxx @@ -68,8 +68,7 @@ void Fl_Widget_Surface::draw(Fl_Widget* widget, int delta_x, int delta_y) // we do some trickery to recognize OpenGL windows and draw them via a plugin int drawn_by_plugin = 0; if (widget->as_gl_window()) { - Fl_Plugin_Manager pm("fltk:device"); - Fl_Device_Plugin *pi = (Fl_Device_Plugin*)pm.plugin("opengl.device.fltk.org"); + Fl_Device_Plugin *pi = Fl_Device_Plugin::opengl_plugin(); if (pi) { drawn_by_plugin = pi->print(widget); } |
