aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 034bfb4a..1749a9c9 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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
{