]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/extensions.hxx
- allow for (rather unusual) ////// cloud groups
[simgear.git] / simgear / screen / extensions.hxx
index fe40550a32e0903ad34d71fd0c9620f56e8f7ff2..d380d9a3f34cb8bfc814f25e76cda881034972e1 100644 (file)
 # 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
 
 
@@ -56,7 +55,7 @@ bool SGIsOpenGLExtensionSupported(char *extName);
   // 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);
   
@@ -70,9 +69,6 @@ inline void (*SGLookupFunction(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