]> git.mxchange.org Git - flightgear.git/commitdiff
open black window immediately. This doesn't only give useful feedback,
authormfranz <mfranz>
Wed, 4 May 2005 10:57:35 +0000 (10:57 +0000)
committermfranz <mfranz>
Wed, 4 May 2005 10:57:35 +0000 (10:57 +0000)
it also allows to switch desktops shortly after starting fgfs without
having the window pop up on the "wrong" virtual desktop.

src/Main/fg_os.cxx

index 5d14659aa90349d53c02ae4a7e7e9e0247599249..6a55e23d5355453ae3e7fa540f507bb4021f1693 100644 (file)
@@ -217,4 +217,8 @@ void fgOSOpenWindow(int w, int h, int bpp, bool alpha,
     glutDisplayFunc(GLUTdraw);
     glutReshapeFunc(GLUTreshape);
 
+    glutShowWindow();
+    glClear(GL_COLOR_BUFFER_BIT);
+    glutSwapBuffers();
+    glutPostRedisplay();
 }