diff options
author | Chris Robinson <[email protected]> | 2011-06-14 06:57:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-06-14 06:57:51 -0700 |
commit | 0f782b385b177a1a5896f26acbef19ee875679d0 (patch) | |
tree | 308c53e6017c7303eaf9f6addeebf36ca0712be8 /Alc/ALc.c | |
parent | 1534fcfafd987c98fbbd39ebc41a8b9ada58d629 (diff) |
Create TLS for contexts earlier
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |