summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 9b2fd33a..d7bd5aa0 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -957,7 +957,7 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
}
break;
case AL_FORMAT_STEREO8:
- if(ALContext->bs2b)
+ if(ALContext && ALContext->bs2b)
{
for(i = 0;i < SamplesToDo;i++)
{
@@ -1039,7 +1039,7 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
}
break;
case AL_FORMAT_STEREO16:
- if(ALContext->bs2b)
+ if(ALContext && ALContext->bs2b)
{
for(i = 0;i < SamplesToDo;i++)
{