From 69798de096be6a9fff248338c65784546e9780cf Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 4 May 2005 10:57:35 +0000 Subject: [PATCH] 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. --- src/Main/fg_os.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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(); } -- 2.39.5