manolo gouy wrote: > Could be better now. Is it ?
No, but I found the bug :-) We're linking statically, and the plugin simply doesn't get loaded because there's no reference to any function in Fl_Gl_Device_Plugin.cxx . I forced one by adding a global variable and referenced it in Fl_Gl_Window.cxx, et voilĂ :-) Here is, what I did: --- begin patch --- Index: src/Fl_Gl_Window.cxx =================================================================== --- src/Fl_Gl_Window.cxx (revision 7288) +++ src/Fl_Gl_Window.cxx (working copy) @@ -28,6 +28,10 @@ #include "flstring.h" #if HAVE_GL +extern int fl_gl_load_plugin; + +static int temp = fl_gl_load_plugin; + #include <FL/Fl.H> #include <FL/x.H> #include "Fl_Gl_Choice.H" Index: src/Fl_Gl_Device_Plugin.cxx =================================================================== --- src/Fl_Gl_Device_Plugin.cxx (revision 7288) +++ src/Fl_Gl_Device_Plugin.cxx (working copy) @@ -109,3 +109,4 @@ static Fl_Gl_Device_Plugin Gl_Device_Plugin; +int fl_gl_load_plugin = 0; --- end of patch --- That's probably not the best/final solution, but I tested it successfully on Linux (not yet on Windows though). To be discussed ... (Matt ?) Albrecht _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
