From: mfranz Date: Wed, 4 May 2005 10:57:35 +0000 (+0000) Subject: open black window immediately. This doesn't only give useful feedback, X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=69798de096be6a9fff248338c65784546e9780cf;p=flightgear.git open black window immediately. This doesn't only give useful feedback, it also allows to switch desktops shortly after starting fgfs without having the window pop up on the "wrong" virtual desktop. --- diff --git a/src/Main/fg_os.cxx b/src/Main/fg_os.cxx index 5d14659aa..6a55e23d5 100644 --- a/src/Main/fg_os.cxx +++ b/src/Main/fg_os.cxx @@ -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(); }