X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscreen%2FTestRenderTexture.cpp;h=490e41e93a4bb8f53675739b411204d7d7620054;hb=d95e3e00557732ef6d000f8870fe9590b5ca441c;hp=8b018cb8240fafc46859b5538507ed9120939240;hpb=8ed96cad1d283ce89afa85496907afa31cc20a08;p=simgear.git diff --git a/simgear/screen/TestRenderTexture.cpp b/simgear/screen/TestRenderTexture.cpp index 8b018cb8..490e41e9 100644 --- a/simgear/screen/TestRenderTexture.cpp +++ b/simgear/screen/TestRenderTexture.cpp @@ -10,7 +10,7 @@ #include #include SG_GL_H -#include +#include SG_GLUT_H #include #include @@ -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);