diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2002-06-26 14:52:33 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2002-06-26 14:52:33 +0000 |
| commit | 0d352d96eaa8c5a7115acceabf80a993a5f623f1 (patch) | |
| tree | e0650ff51fff470e42a67db2b543b3926ae93fb6 /src | |
| parent | 1be610c97025509a9858e0e2b4409db16751fcdb (diff) | |
glut_compatibility did not initialize 'display' function pointer and would make OS X implementation crash.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2322 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rwxr-xr-x | src/glut_compatability.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/glut_compatability.cxx b/src/glut_compatability.cxx index 54734b05a..bce2881a9 100755 --- a/src/glut_compatability.cxx +++ b/src/glut_compatability.cxx @@ -1,5 +1,5 @@ // -// "$Id: glut_compatability.cxx,v 1.4.2.5.2.1 2002/01/01 15:11:32 easysw Exp $" +// "$Id: glut_compatability.cxx,v 1.4.2.5.2.2 2002/06/26 14:52:33 matthiaswm Exp $" // // GLUT emulation routines for the Fast Light Tool Kit (FLTK). // @@ -47,6 +47,7 @@ void (*glut_menustate_function)(int); void (*glut_menustatus_function)(int,int,int); static void default_reshape(int w, int h) {glViewport(0,0,w,h);} +static void default_display() {} void Fl_Glut_Window::make_current() { glut_window = this; @@ -153,6 +154,8 @@ void Fl_Glut_Window::_init() { windows[number] = this; menu[0] = menu[1] = menu[2] = 0; reshape = default_reshape; + display = default_display; + overlaydisplay = default_display; keyboard = 0; mouse = 0; motion = 0; @@ -399,5 +402,5 @@ int glutLayerGet(GLenum type) { #endif // -// End of "$Id: glut_compatability.cxx,v 1.4.2.5.2.1 2002/01/01 15:11:32 easysw Exp $". +// End of "$Id: glut_compatability.cxx,v 1.4.2.5.2.2 2002/06/26 14:52:33 matthiaswm Exp $". // |
