Albrecht Schlosser wrote:
> manolo gouy wrote:
>
>> Great. It works on MSWindows here with your patch.
>> I don't see any problem under Darwin+X11 though.
>
> Hmm, then we see different results. I still get only the
> normal widgets (cube) and an empty page (glpuzze), resp.
Another patch - again it works for me on Linux, but not on
Windows:
$ svn diff
Index: src/Fl_Gl_Window.cxx
===================================================================
--- src/Fl_Gl_Window.cxx (revision 7288)
+++ src/Fl_Gl_Window.cxx (working copy)
@@ -35,6 +35,8 @@
#include <stdlib.h>
#include <FL/fl_utf8.h>
+const char *fl_gl_plugin_name();
+
////////////////////////////////////////////////////////////////
// The symbol SWAP_TYPE defines what is in the back buffer after doing
@@ -66,6 +68,7 @@
}
void Fl_Gl_Window::show() {
+ printf ("fl_gl_plugin_name = %s\n",fl_gl_plugin_name()); fflush(stdout);
#if defined(__APPLE__) && defined(__APPLE_COCOA__)
int need_redraw = 0;
#endif
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;
+const char *fl_gl_plugin_name() { return Gl_Device_Plugin.name(); }
--- end of patch ---
Output from test/cube (on both Windows and Linux):
$ test/cube
fl_gl_plugin_name = opengl.device.fltk.org
fl_gl_plugin_name = opengl.device.fltk.org
fl_gl_plugin_name = opengl.device.fltk.org
fl_gl_plugin_name = opengl.device.fltk.org
I conclude that the plugin *is* loaded, but it doesn't print.
Puzzling...
(I'll be offline for about 4-5 hours now, so don't expect any
more test results from me. But I'm curious what you will have
found out in the meantime) ;-)
Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev