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
|
} else
|
||||||
tpath.append( splash_texture );
|
tpath.append( splash_texture );
|
||||||
|
|
||||||
splash.read_rgb_texture(tpath.c_str());
|
splash.read_rgba_texture(tpath.c_str());
|
||||||
if (!splash.usable())
|
if (!splash.usable())
|
||||||
{
|
{
|
||||||
// Try compressed
|
// Try compressed
|
||||||
SGPath fg_tpath = tpath;
|
SGPath fg_tpath = tpath;
|
||||||
fg_tpath.concat( ".gz" );
|
fg_tpath.concat( ".gz" );
|
||||||
|
|
||||||
splash.read_rgb_texture(fg_tpath.c_str());
|
splash.read_rgba_texture(fg_tpath.c_str());
|
||||||
if ( !splash.usable() )
|
if ( !splash.usable() )
|
||||||
{
|
{
|
||||||
SG_LOG( SG_GENERAL, SG_ALERT,
|
SG_LOG( SG_GENERAL, SG_ALERT,
|
||||||
|
|
Loading…
Reference in a new issue