Hold the default context extensions globally

This commit is contained in:
Chris Robinson 2010-01-09 02:48:18 -08:00
parent 4d9a368f96
commit 3d11fb219e

View File

@ -208,6 +208,13 @@ static tls_type LocalContext;
// Context Error
static ALCenum g_eLastContextError = ALC_NO_ERROR;
// Default context extensions
static const ALchar alExtList[] =
"AL_EXTX_buffer_sub_data AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 "
"AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET "
"AL_EXTX_sample_buffer_object AL_EXTX_source_distance_model "
"AL_LOKI_quadriphonic";
// Mixing Priority Level
ALint RTPrioLevel;
@ -608,7 +615,7 @@ static ALvoid InitContext(ALCcontext *pContext)
pContext->DopplerVelocity = 1.0f;
pContext->flSpeedOfSound = SPEEDOFSOUNDMETRESPERSEC;
pContext->ExtensionList = "AL_EXTX_buffer_sub_data AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_EXTX_sample_buffer_object AL_EXTX_source_distance_model AL_LOKI_quadriphonic";
pContext->ExtensionList = alExtList;
}