diff options
author | Chris Robinson <[email protected]> | 2009-08-13 13:32:42 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-08-13 13:32:42 -0700 |
commit | 45552a68ce4f146faeba4ab3889ebd6ed0547052 (patch) | |
tree | f247f1cd4e7219a2a704d5efce490583cde91f15 /Alc/ALc.c | |
parent | d46655fbb2a70758b8a901b86055b82068c7231b (diff) |
Hold the lock while initializing context playback
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1033,19 +1033,17 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint return NULL; } + SuspendContext(NULL); + ALContext->Device = device; InitContext(ALContext); device->Context = ALContext; - SuspendContext(NULL); - ALContext->next = g_pContextList; g_pContextList = ALContext; g_ulContextCount++; - ProcessContext(NULL); - // Check for attributes if (attrList) { @@ -1101,6 +1099,8 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint SetALCError(ALC_INVALID_VALUE); } ALContext->Frequency = device->Frequency; + + ProcessContext(NULL); } else { |