aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-17 12:57:22 -0800
committerChris Robinson <[email protected]>2008-01-17 12:57:22 -0800
commit43cfc097de3fd84d701d7b6528cea80a28315cb7 (patch)
tree2fa1db7bf7003e5a8c9a93aead38bcbafd4101d3
parent6735fc791148222689c0c6b42d7ca5132fcd340c (diff)
Don't dereference ALContext if there's no context yet
Patch by Evgeny A. Marchenko
-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++)
{