]> 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 49582191038eb99c94949558bd815e05d591ada7..a1874fbc8aac90ffe37311e1e24eef7485f6b9e4 100644 (file)
  */
 #include <simgear/compiler.h>
 
-#if !defined( _WIN32 ) && !defined( __MACH__ )
-#  include <X11/Xlib.h>
+#include <osg/GL>
+
+#if defined( __APPLE__)
+#  include <OpenGL/OpenGL.h>
 #endif
-#include SG_GL_H
-#ifndef _WIN32
-#  include SG_GLX_H
+
+#if !defined( _WIN32 ) && !defined( __APPLE__ )
+#  include <X11/Xlib.h>
+#  include <GL/glx.h>
 #endif
-#ifdef __MACH__
-#  ifndef None
-#     define None false
-#  endif
-#  ifndef True
-#     define True true
-#  endif
-#endif 
 
 #include <string>
 #include <vector>