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
This commit is contained in:
Matthias Melcher 2002-06-26 14:52:33 +00:00
parent 1be610c970
commit 0d352d96ea
2 changed files with 7 additions and 2 deletions

View File

@ -94,6 +94,8 @@ KNOWN MacFLTK BUGS
- The 'shiny' demo needs work (flush/aglFlush).
- Threads are not implemented.
- OpenGL subwindow during window resize changes position
- OpenGL text and font support
- fl_measure returns wrong width (about 10% short)
TEST SUITE STATUS

View File

@ -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 $".
//