summaryrefslogtreecommitdiff
path: root/src/Fl_Screen_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <manolo>2018-12-05 11:04:58 +0100
committerManoloFLTK <manolo>2018-12-05 11:04:58 +0100
commit3bcb1256bb3b5c6c3600bef5736936cdb613269c (patch)
tree698a8d6ad6525f6296de5d39d2b8356a1e5ae99a /src/Fl_Screen_Driver.cxx
parentfb4cb7165583b612ba95563445fa9d0685e2a75a (diff)
New static member function: Fl_Device_Plugin *Fl_Device_Plugin::opengl_plugin()
Diffstat (limited to 'src/Fl_Screen_Driver.cxx')
-rw-r--r--src/Fl_Screen_Driver.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_Screen_Driver.cxx b/src/Fl_Screen_Driver.cxx
index cb89ec2b8..1d812a047 100644
--- a/src/Fl_Screen_Driver.cxx
+++ b/src/Fl_Screen_Driver.cxx
@@ -192,8 +192,7 @@ Fl_RGB_Image *Fl_Screen_Driver::traverse_to_gl_subwindows(Fl_Group *g, int x, in
Fl_RGB_Image *full_img)
{
if ( g->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) return full_img;
full_img = pi->rectangle_capture(g, x, y, w, h);
}