]> git.mxchange.org Git - flightgear.git/commitdiff
allow rgba splash textures (I don't expect that they'll be used much, but
authormfranz <mfranz>
Sat, 28 Apr 2007 12:37:20 +0000 (12:37 +0000)
committermfranz <mfranz>
Sat, 28 Apr 2007 12:37:20 +0000 (12:37 +0000)
they don't cost much either, and allow contoured images with colored
backgrounds -- nice for squadron emblems etc.)

src/Main/splash.cxx

index 4cf41a544b7a52211236a838f32ef55aca3f1339..252efb720711c458108a89b42b9b97a5ed37a73c 100644 (file)
@@ -85,14 +85,14 @@ void fgSplashInit ( const char *splash_texture ) {
     } else
         tpath.append( splash_texture );
 
-    splash.read_rgb_texture(tpath.c_str());
+    splash.read_rgba_texture(tpath.c_str());
     if (!splash.usable())
     {
         // Try compressed
         SGPath fg_tpath = tpath;
         fg_tpath.concat( ".gz" );
 
-        splash.read_rgb_texture(fg_tpath.c_str());
+        splash.read_rgba_texture(fg_tpath.c_str());
         if ( !splash.usable() )
         {
             SG_LOG( SG_GENERAL, SG_ALERT,