aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-05 00:29:20 -0800
committerChris Robinson <[email protected]>2007-12-05 00:29:20 -0800
commit15019b3871efa27782703ee216aa910927427801 (patch)
treedfa6c6e9fd677160b605fcf9ed91421ade76f41d /Alc/ALu.c
parent86cced248be365c3e7597deeab53d6c25636bc54 (diff)
Allow aluMixData to accept a NULL context for silence
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 1b9fbce9..8e458764 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -414,7 +414,7 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
while(size > 0)
{
//Setup variables
- ALSource = ALContext->Source;
+ ALSource = (ALContext ? ALContext->Source : NULL);
SamplesToDo = min(size, BUFFERSIZE);
//Clear mixing buffer