]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/TestRenderTexture.cpp
make headers include headers they depend on, don't rely on the c(xx)
[simgear.git] / simgear / screen / TestRenderTexture.cpp
index 70d211517ad90e424f8124e2cb7199154239f12c..490e41e93a4bb8f53675739b411204d7d7620054 100644 (file)
@@ -1,10 +1,18 @@
 
+#ifdef HAVE_CONFIG_H
+#  include <simgear/simgear_config.h>
+#endif
+
+#ifdef HAVE_WINDOWS_H
+#  include <windows.h>
+#endif
+
 #include <simgear/compiler.h>
 
 #include SG_GL_H
-#include <GL/glut.h>
-#include <simgear/screen/RenderTexture.h>
+#include SG_GLUT_H
 #include <simgear/screen/extensions.hxx>
+#include <simgear/screen/RenderTexture.h>
 
 #include <assert.h>
 #include <stdio.h>
@@ -297,8 +305,10 @@ void _Display()
 // Function            : main
 // Description     : 
 //---------------------------------------------------------------------------
-int main()
+int main(int argc, char *argv[])
 {
+    int argn = argc;
+    glutInit(&argn, argv);
     glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
     glutInitWindowPosition(50, 50);
     glutInitWindowSize(512, 512);