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:
parent
1722d26b2f
commit
8f17140003
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue