# include <windows.h>
#endif
-#if !defined(WIN32)
-# include <GL/glx.h>
-#endif
-
#include <simgear/compiler.h>
+#if !defined(WIN32)
+# include SG_GLX_H
+#endif
#include SG_GL_H
// don't use an inline function for symbol lookup, since it is too big
void* macosxGetGLProcAddress(const char *func);
-#elif !defined( WIN32 ) && !defined( GLX_VERSION_1_4 )
+#elif !defined( WIN32 )
void *SGGetGLProcAddress(const char *func);
#elif defined( __APPLE__ )
return (void (*)()) macosxGetGLProcAddress(func);
-#elif defined( GLX_VERSION_1_4 )
- return glXGetProcAddress((const GLubyte*)func);
-
#else // UNIX, default
return (void (*)()) SGGetGLProcAddress(func);
#endif