]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/RenderTexture.h
Fix a problem with systems that don't define GLXPbufferSGIX or GLXFBConfigSGIX
[simgear.git] / simgear / screen / RenderTexture.h
index 9bf4402f046dc8a069a32b33e4228ae19093b52d..d2c9da4976bdcba52de8a1841fe946e8c47ecb92 100644 (file)
@@ -45,6 +45,7 @@
  * Changelog:
  *
  * Jan. 2005, Removed GLEW dependencies, Erik Hofman
+ *            Added MacOS X support
  */
 #include <simgear/compiler.h>
 
 #ifndef _WIN32
 #  include SG_GLX_H
 #endif
+#ifdef __APPLE__
+#  ifndef None
+#     define None false
+#  endif
+#  ifndef True
+#     define True true
+#  endif
+#endif 
 
 #include <string>
 #include <vector>
@@ -350,8 +359,8 @@ protected: // data
     
     // Texture stuff
     GLenum       _iTextureTarget;
-    unsigned int _iTextureID;
-    unsigned int _iDepthTextureID;
+    GLuint       _iTextureID;
+    GLuint       _iDepthTextureID;
     
     unsigned short* _pPoorDepthTexture; // [Redge]