Try default OpenAL driver if user set one fails to load

This commit is contained in:
Zack Middleton 2014-01-27 20:07:41 -06:00
parent 49d756364a
commit 36a4075a8d

View file

@ -2521,7 +2521,9 @@ qboolean S_AL_Init( soundInterface_t *si )
if( !QAL_Init( s_alDriver->string ) )
{
Com_Printf( "Failed to load library: \"%s\".\n", s_alDriver->string );
return qfalse;
if( !Q_stricmp( s_alDriver->string, ALDRIVER_DEFAULT ) || !QAL_Init( ALDRIVER_DEFAULT ) ) {
return qfalse;
}
}
device = s_alDevice->string;