1
0
Fork 0

allow rgba splash textures (I don't expect that they'll be used much, but

they don't cost much either, and allow contoured images with colored
backgrounds -- nice for squadron emblems etc.)
This commit is contained in:
mfranz 2007-04-28 12:37:20 +00:00
parent 1722d26b2f
commit 8f17140003

View 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,