]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/extensions.hxx
restore some part of the code to prevent an untwanted segmentationf fault.
[simgear.git] / simgear / screen / extensions.hxx
index d380d9a3f34cb8bfc814f25e76cda881034972e1..c58f441605f0c891b04cc9f28368e42ecebfa450 100644 (file)
 
 #include <simgear/compiler.h>
 
-#if !defined(WIN32)
-# include SG_GLX_H
-#endif
-#include SG_GL_H
+#include <osg/GL>
 
+#if !defined(__APPLE__) && !defined(WIN32)
+#  include <GL/glx.h>
+#endif
 
 #if defined(__cplusplus)
 extern "C" {
@@ -49,7 +49,7 @@ extern "C" {
 #endif
 
 bool SGSearchExtensionsString(const char *extString, const char *extName);
-bool SGIsOpenGLExtensionSupported(char *extName);
+bool SGIsOpenGLExtensionSupported(const char *extName);
 
 #ifdef __APPLE__
   // don't use an inline function for symbol lookup, since it is too big