aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-14 06:57:51 -0700
committerChris Robinson <[email protected]>2011-06-14 06:57:51 -0700
commit0f782b385b177a1a5896f26acbef19ee875679d0 (patch)
tree308c53e6017c7303eaf9f6addeebf36ca0712be8 /Alc/ALc.c
parent1534fcfafd987c98fbbd39ebc41a8b9ada58d629 (diff)
Create TLS for contexts earlier
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 9f44389a..d704a98f 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -497,15 +497,15 @@ static void alc_init(void)
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
ZScale = -1.0;
+ tls_create(&LocalContext);
InitializeCriticalSection(&g_csMutex);
InitializeCriticalSection(&ListLock);
ALTHUNK_INIT();
+
ReadALConfig();
InitHrtf();
- tls_create(&LocalContext);
-
RTPrioLevel = GetConfigValueInt(NULL, "rt-prio", 0);
DefaultResampler = GetConfigValueInt(NULL, "resampler", RESAMPLER_DEFAULT);