]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/TestRenderTexture.cpp
don't rely on a compressed scanline being properly closed
[simgear.git] / simgear / screen / TestRenderTexture.cpp
index 8b018cb8240fafc46859b5538507ed9120939240..490e41e93a4bb8f53675739b411204d7d7620054 100644 (file)
@@ -10,7 +10,7 @@
 #include <simgear/compiler.h>
 
 #include SG_GL_H
-#include <GL/glut.h>
+#include SG_GLUT_H
 #include <simgear/screen/extensions.hxx>
 #include <simgear/screen/RenderTexture.h>
 
@@ -305,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);