]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/splash.cxx
Make sound audiable not until after the scenery is loaded.
[flightgear.git] / src / Main / splash.cxx
index e83506fb7223acf8d30a538c66ff1e241cf5ccb6..a316e3b827eab549ede7c48542553d938c6bcaec 100644 (file)
 #  include <windows.h>
 #endif
 
-#include FG_GLUT_H
-
 #include <string.h>
 
+#include <simgear/compiler.h>
+
+#include SG_GLU_H
+
 #include <simgear/debug/logstream.hxx>
 #include <simgear/screen/texture.hxx>
 #include <simgear/math/sg_random.h>
@@ -46,6 +48,8 @@
 #include "globals.hxx"
 #include "fg_props.hxx"
 #include "splash.hxx"
+#include "fg_os.hxx"
+
 
 
 static SGTexture splash;
@@ -141,8 +145,6 @@ void fgSplashUpdate ( double progress, float alpha ) {
     glTexCoord2f(0.0, 1.0); glVertex2f(xmin, ymax); 
     glEnd();
 
-    glutSwapBuffers();
-
     glEnable(GL_DEPTH_TEST);
     glEnable(GL_LIGHTING);
     glDisable(GL_TEXTURE_2D);