summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FL/Fl_Gl_Window.H1
-rw-r--r--src/Fl_Gl_Window.cxx7
2 files changed, 6 insertions, 2 deletions
diff --git a/FL/Fl_Gl_Window.H b/FL/Fl_Gl_Window.H
index d92dc04f2..47fe04939 100644
--- a/FL/Fl_Gl_Window.H
+++ b/FL/Fl_Gl_Window.H
@@ -70,6 +70,7 @@ class FL_EXPORT Fl_Gl_Window : public Fl_Window {
static int can_do(int, const int *);
int mode(int, const int *);
+ static int gl_plugin_linkage();
public:
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx
index 8e179a6a3..f5b41a2a0 100644
--- a/src/Fl_Gl_Window.cxx
+++ b/src/Fl_Gl_Window.cxx
@@ -24,8 +24,6 @@ extern int fl_gl_load_plugin;
extern void gl_texture_reset();
#endif
-static volatile int temp = fl_gl_load_plugin; // don't remove me! I force linking of Fl_Gl_Device_Plugin.o
-
#include <FL/Fl.H>
#include <FL/x.H>
#ifdef __APPLE__
@@ -575,6 +573,11 @@ int Fl_Gl_Window::handle(int event)
return Fl_Window::handle(event);
}
+// don't remove me! this serves only to force linking of Fl_Gl_Device_Plugin.o
+int Fl_Gl_Window::gl_plugin_linkage() {
+ return fl_gl_load_plugin;
+}
+
//
// End of "$Id$".
//