From 87b5d7bc7ba9c9a262332cfbebd68602869a11ca Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 22 Jul 2008 12:39:10 -0700 Subject: Store extension list with a pointer, not a per-context array --- Alc/ALc.c | 2 +- OpenAL32/Include/alMain.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index 2363766c..15cdcfb7 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -441,7 +441,7 @@ static ALvoid InitContext(ALCcontext *pContext) pContext->lNumStereoSources = 1; pContext->lNumMonoSources = pContext->Device->MaxNoOfSources - pContext->lNumStereoSources; - strcpy(pContext->ExtensionList, "AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_LOKI_quadriphonic"); + pContext->ExtensionList = "AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_LOKI_quadriphonic"; level = GetConfigValueInt(NULL, "cf_level", 0); if(level > 0 && level <= 6) diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 15512e7e..66dcaaac 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -198,7 +198,7 @@ struct ALCcontext_struct ALint lNumStereoSources; ALCdevice *Device; - ALCchar ExtensionList[1024]; + const ALCchar *ExtensionList; struct bs2b *bs2b; -- cgit v1.2.3