From: curt Date: Sat, 26 Sep 1998 13:17:29 +0000 (+0000) Subject: Clear screen to "black" before drawing splash screen. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=203f3dc39e6c9a42d4f962a8b5bea23872559ac4;p=flightgear.git Clear screen to "black" before drawing splash screen. --- diff --git a/Main/splash.cxx b/Main/splash.cxx index da72b3694..127fb9458 100644 --- a/Main/splash.cxx +++ b/Main/splash.cxx @@ -103,6 +103,11 @@ void fgSplashUpdate ( double progress ) { ymin = (480 - ysize) / 2; ymax = ymin + ysize; + // first clear the screen; + xglClearColor(0.0, 0.0, 0.0, 1.0); + xglClear( GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT ); + + // now draw the logo xglMatrixMode(GL_PROJECTION); xglPushMatrix(); xglLoadIdentity(); @@ -144,6 +149,9 @@ void fgSplashUpdate ( double progress ) { // $Log$ +// Revision 1.5 1998/09/26 13:17:29 curt +// Clear screen to "black" before drawing splash screen. +// // Revision 1.4 1998/08/27 17:02:08 curt // Contributions from Bernie Bright // - use strings for fg_root and airport_id and added methods to return