From 0f782b385b177a1a5896f26acbef19ee875679d0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 14 Jun 2011 06:57:51 -0700 Subject: Create TLS for contexts earlier --- Alc/ALc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/ALc.c') 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); -- cgit v1.2.3