summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2014-01-27 20:07:41 -0600
committerTim Angus <tim@ngus.net>2014-06-17 17:43:38 +0100
commit8a9ab09aa32c5164da0403c85c5c32ab36f52a5e (patch)
tree1a435086aaf22d3e0713e3de4b30bf1e6710b710
parentae38333e92707316e00df873668229a61f14dcff (diff)
Try default OpenAL driver if user set one fails to load
-rw-r--r--src/client/snd_openal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/snd_openal.c b/src/client/snd_openal.c
index 549286c3..05ef218f 100644
--- a/src/client/snd_openal.c
+++ b/src/client/snd_openal.c
@@ -2540,7 +2540,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;