From 94dd34fb4b106b001797d9f5b4e98b3319a36579 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 25 Jul 2016 06:29:08 -0700 Subject: Increase the default thunk array size This value should be enough to hold IDs for most apps without needing to reallocate it, while not being unnecessarily large (4KB). --- OpenAL32/alThunk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenAL32/alThunk.c b/OpenAL32/alThunk.c index 29da9bbd..72fc0dcb 100644 --- a/OpenAL32/alThunk.c +++ b/OpenAL32/alThunk.c @@ -35,7 +35,7 @@ static RWLock ThunkLock; void ThunkInit(void) { RWLockInit(&ThunkLock); - ThunkArraySize = 1; + ThunkArraySize = 1024; ThunkArray = al_calloc(16, ThunkArraySize * sizeof(*ThunkArray)); } -- cgit v1.2.3