diff options
author | Chris Robinson <[email protected]> | 2008-07-22 12:39:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-07-22 12:39:10 -0700 |
commit | 87b5d7bc7ba9c9a262332cfbebd68602869a11ca (patch) | |
tree | 2d3ac276e2cce56d3a4e945e800e372dd9eff87a | |
parent | 646714b5858056470c328413e2c99efac9a046f5 (diff) |
Store extension list with a pointer, not a per-context array
-rw-r--r-- | Alc/ALc.c | 2 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; |