Hold the default context extensions globally
This commit is contained in:
parent
4d9a368f96
commit
3d11fb219e
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user