diff options
author | Chris Robinson <[email protected]> | 2008-01-17 12:57:22 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-01-17 12:57:22 -0800 |
commit | 43cfc097de3fd84d701d7b6528cea80a28315cb7 (patch) | |
tree | 2fa1db7bf7003e5a8c9a93aead38bcbafd4101d3 | |
parent | 6735fc791148222689c0c6b42d7ca5132fcd340c (diff) |
Don't dereference ALContext if there's no context yet
Patch by Evgeny A. Marchenko
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++) { |