From 6eb62b1e3056c84ca17290c7b160d9a4684b0bd6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 24 Jan 2003 09:34:33 +0000 Subject: [PATCH] Added an #ifdef check around the glutSpecialUpFunc to help compile unde old version of GLUT. --- src/osgGLUT/Window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgGLUT/Window.cpp b/src/osgGLUT/Window.cpp index bd1f8c739..328b3a830 100644 --- a/src/osgGLUT/Window.cpp +++ b/src/osgGLUT/Window.cpp @@ -79,7 +79,9 @@ bool Window::open() glutPassiveMotionFunc( mousePassiveMotionCB ); glutSpecialFunc( specialCB ); +#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13) glutSpecialUpFunc( specialUpCB ); +#endif glutSpaceballMotionFunc( spaceballMotionCB ); glutSpaceballRotateFunc( spaceballRotateCB ); glutSpaceballButtonFunc( spaceballButtonCB );