]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/RenderTexture.h
restore some part of the code to prevent an untwanted segmentationf fault.
[simgear.git] / simgear / screen / RenderTexture.h
index 78d56f6f28d10f9623ffbea08b0a1fc1f691f195..a1874fbc8aac90ffe37311e1e24eef7485f6b9e4 100644 (file)
  */
 #include <simgear/compiler.h>
 
-#if !defined( _WIN32 ) && !defined( __MACH__ )
-#  include <X11/Xlib.h>
-#endif
-#include SG_GL_H
-#if defined( __MACH__)
-#  include <OpenGL/CGLTypes.h>
+#include <osg/GL>
+
+#if defined( __APPLE__)
+#  include <OpenGL/OpenGL.h>
 #endif
-#ifndef _WIN32
-#  include SG_GLX_H
+
+#if !defined( _WIN32 ) && !defined( __APPLE__ )
+#  include <X11/Xlib.h>
+#  include <GL/glx.h>
 #endif
 
 #include <string>